The InstallDelete section is the first step of the installation process, the Run section is performed much later. So if you're going to delete something what is installed from the Run section, you are doing it wrong. If you don't want to use a code in the Code section, use e.g. Del command and run it from the Run section somewhere after the installation entry. But, as Miral suggests, the best is to look if there's a way to prevent the installer even create those shortcuts.
Deleting files left after installing vcredist_x86. Here is an ‘Inno Setup’ script that deletes the 24. And use the above code to delete the temporary files.
– Sep 4 '13 at 12:26.
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. 1) I set some environment variables at the start. They of course do not take effect till the inno script finishes execution (i.e the installation finishes). 2) The environment variables are needed to install a service. 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. 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.
Aankhon mein teri ajab si video song download. 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. Please help with any pointers/suggestions.