This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Help me urgent !
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Sep 19, 2008
09:25 AM
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!
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!
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Sep 19, 2008
12:09 PM
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
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