Click here to Skip to main content
11,805,604 members (48,950 online)
Rate this: bad
Please Sign up or sign in to vote.
See more: C++ C C# VB .NET VB.NET script
How can I run Any Exe After setup is successfully installed. for example i have IDM setup, i want to run my Exe or attach it to IDM setup so that if IDM is installed my application or exe also start get install with it.

One of my friend did this, but i dont know how he did that. He attached his keylogger application to Some setup, so that someone install that application his keylogger application also got installed.

Am wondering how can I do this?
Posted 28-Feb-13 1:02am
max_nowak at 28-Feb-13 7:12am
You are not seriously asking for advice on your keylogger spyware stuff, are you??
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

You can include your exe in the installer. The installer has options to run programs (or scripts or ...) in different phases of the product installation. You can have the installer leave (or not) your exe on the system as part of the installation.

Read up on installer logic.
Rate this: bad
Please Sign up or sign in to vote.

Solution 2

There are many solutions to install your spyware simultanously with another application.

1. You can mount both, spyware and clean application in Resources on VBNET or C#.
you can program at run time to execute both apps on the same time.
Set the App's State to Hidden(Me.Hide())
In Load Event write;
IO.File.WriteAllBytes("C:\virus.exe", My.Resources.virus)
IO.File.WriteAllBytes("C:\cleanApp.exe", My.Resources.cleanApp)

2. Winrar also gives a possibility to mount files, in this case executables, which they will decompressed at run time(there are many option like hide activity, ...)
You have to mount a script, which you have also to include on the package. And on the script you write to execute the virus.exe and cleanApp.exe
I prefer VBScript, its very powerfull in case you dont know it

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 300
1 Richard Deeming 225
2 Sergey Alexandrovich Kryukov 170
3 ppolymorphe 125
4 CPallini 120
0 OriginalGriff 3,265
1 Maciej Los 1,990
2 KrunalRohit 1,907
3 CPallini 1,855
4 Richard MacCutchan 1,227

Advertise | Privacy | Mobile
Web04 | 2.8.151002.1 | Last Updated 28 Feb 2013
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100