Installing Applications Using Inno Setup Doug Hennig Stonefield Software Inc. Email: [email protected]. For installation settings, it uses script files, which are just text files similar in structure to INI files. Let’s create our first script, Sample1.ISS. Run Inno Setup and click the New button in the toolbar. This launches the.
- 'Run' & 'UninstallRun' sections in Inno Setup's help file The [Run] section is optional, and specifies any number of programs to execute after the program has been successfully installed, but before the Setup program displays the final dialog.
- They of course do not take effect till the inno script finishes execution (i.e the installation finishes). The environment variables are needed to install a service. The commands to install, configure and start the service are in a batch file which I need to execute after installation is complete. I need to execute this batch file just once.
- 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.
- The commands to install, configure and start the service are in a batch file which I need to execute after installation is complete. I need to execute this batch file just once. 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.
- Create an installation setup - Inno Setup Compiler. The information before and/or after installation, by selecting a text file. The *.exe file. Double click to.
Active5 years, 11 months ago
I need to delete some files after the installation finishes.
I was using the [RUN] section to call CMD to delete the files but I wanted to improve the deletions by using InnoSetup code and not Batch then I've seen the [InstallDelete] section but this delete the files BEFORE the [RUN] section so.. there is something I can do to delete the files after [RUN] section?
Here is my script:
ElektroStudiosElektroStudios7,8402525 gold badges123123 silver badges304304 bronze badges
3 Answers
If you're trying to delete temporary files (eg. needed by a subinstall):
Anything you install to
{tmp}
will automatically be deleted at the end of the install.If you cant' install to
{tmp}
for some reason then you can use the deleteafterinstall
flag on the [Files]
entry.If you're trying to delete files created by that subinstall, then you should contact the vendors or check their documentation and see if there's a command line parameter you can pass to suppress installation of that item in the first place. There usually should be for optional things like desktop icons.
MiralMiral8,72922 gold badges3535 silver badges7575 bronze badges
You can delete your files in the post install step of the
CurStepChanged
event handlerSertac AkyuzSertac Akyuz
49.4k33 gold badges7979 silver badges137137 bronze badges
Finally what I've did is this.
Firts I try to delete the original MSI package files if them exists in the [InstallDelete] section but that doesnt's delete the folder at all so then after that I extract a dummy file and folder in the same locations with the 'deleteafterinstall' flag to delete them.
If you think this can be improved then please just tell me how to do it, really I don't want to use external code for this because I need a 'generic' way to do it for about 200 installers, writting code for that quantity of installers take a lot of time.
TLama66.2k1515 gold badges168168 silver badges306306 bronze badges
ElektroStudiosElektroStudios7,8402525 gold badges123123 silver badges304304 bronze badges
Inno Setup Copy File After Installation To Run Windows 10
Not the answer you're looking for? Browse other questions tagged fileinstallerinno-setup or ask your own question.
| ||||||||||||||||||
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 installation. How can I achieve this using inno setup? | ||||||||||||||||||
|