Click here to Skip to main content
12,698,173 members (25,402 online)
Rate this:
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 2:02am
max_nowak 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
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170118.1 | Last Updated 28 Feb 2013
Copyright © CodeProject, 1999-2017
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