cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
jayakumarn
Level 5

Help me urgent !

Hi all,
I have written a Install script for creating a text file in the installed directory .It runs fine. when installing the software , but also it runs the script when uninstalling also . so the file is created when uninstalling also .
But i don't want to run the script when i uninstall.
Please suggest me some idea!
Labels (1)
0 Kudos
(1) Reply
SMadden
Level 6

Hi,

It's not from your post which project type you have, but if it is an InstallScript project you could check the MAINTENANCE variable.

Something like

if (!MAINTENANCE) then
//create textfile
endif;

If you have an InstallScript custom action, you could put a condition on it to have it only run on first time installs. E.g "Not Installed"

Sandra
0 Kudos