Inno Setup Copy File After Installation To Run

  1. Inno Setup Copy File After Installation To Running
  2. Inno Setup Copy File After Installation To Run Free
  3. Inno Setup Copy File After Install To Run Batch
  4. Inno Setup Copy File After Installation To Run Windows 10
  1. Programming Languages I am installing the Apache through the Inno setup. Now I want to copy the httpd.conf file from my localdisk to Apache conf folder after the Apache ins, ID #4811750.
  2. Inno Setup, Part 2. Running files during installation and uninstallation. One of the common tasks during installation is to copy file to some temp directory, run it and delete after that. For example, it can be some script. In our example we are creating database.
Posted by3 years ago

The application JpegGuard uses ShareGuard for copy protection. DETAILS ON CREATING INNO SETUP SCRIPT FILES! Line if you want your installation to run on NT 3.

Archived

I recently finished an application I made (written on Java). So I looked to find an installer to create a setup that most software have nowadays. I found Inno which has some features I really wanted (like to add a password and set the path of installation). However there is one thing I'm looking for.

After the installation, can I somehow make my program not to run at other computers if someone will copy my .exe file from one PC to another? Since my application is just one .exe file that my installer extracts at the path of installation (example at C:Program FilesMyApp, there is only 1 file, app.exe. Can I somehow do that if someone will copy that .exe file from program files, it won't work on other computers?

I'm kinda new to programming and all that stuff, so I don't know that much. Maybe with registry key? If yes, any good example/tutorial?

tl;dr My application can't work with copy/paste to a new computer, only with a normal installation from the installer setup that I created by Inno. Is it possible?

Inno Setup Copy File After Installation To Running

Kinda off-topic question but can I sell my application? Inno is a freeware software, however I don't know if it's legal to sell applications that you made an installer with Inno.

3 comments

Inno Setup Copy File After Installation To Run Free

Viewed 6k times

Friends, I'm writing a script which does a lot of stuff - install my application + other opensource software, set up s/w as service, execute batch files to do some stuff etc.

Copy
  1. I set some environment variables at the start. They of course do nottake effect till the inno script finishes execution (i.e theinstallation finishes).
  2. The environment variables are needed to install a service.
  3. The commands to install, configure and start the service are in abatch file which I need to execute after installation is complete. Ineed to execute this batch file just once.
Inno Setup Copy File After Installation To Run

How do I execute this batch file after installation is complete, using inno? It can be immediately after user finishes the install process or run once at system restart. Is it achievable through inno script? Or is there a way for my environment variables to take effect so that my batch file can run?

I know there are installation programs that do part of installation after user has finished install process and system has restarted. Does inno support that kind of functionality?

I'm not sure if CurStepChanged + ssPostInstall method will work here as it will essentially be the same environment that inno began with and my variables are not yet in effect.

If this cannot be achieved through inno script, I will place the batch file at system startup - in that case I will need to check if the service is already installed/running and take appropriate action. But that would be crude.

Any pointers/suggestions?

JakeGould
34.9k10 gold badges109 silver badges151 bronze badges

Inno Setup Copy File After Install To Run Batch

KunalKunal
Inno Setup Copy File After Installation To Run

Inno Setup Copy File After Installation To Run Windows 10

Browse other questions tagged batch-file or ask your own question.