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
- :
- Stop install if folder/file exists
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
‎Jun 12, 2012
02:21 PM
Stop install if folder/file exists
I am looking at being able to have my install look in the folder that that was specified at the start of the install and if a particular folder or file exists then stop the install process and give a particular message. The folder or file will be located in the same directory that is chosen by the user to install the software into. Any help would be greatly appreciated.
(3) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 14, 2012
03:03 AM
since you have mentioned that user can choose the destination which means the install is already in UI sequence.
In this case you can only reply on custom actions (InstallScript ) to achieve your task.
In this case you can only reply on custom actions (InstallScript ) to achieve your task.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 14, 2012
09:35 AM
So what your saying is I can only do this as a custom action. I'm guessing that I would have to put this custom action high up in the execute order in order to stop the installation before any actions are taken to copy the files over to the computer in question. Would I do this after the execute action of SetARPinstalllocation? My next question would be what is the variable name for the installation path and can that variable even be used in a script and can I even use a script to stop the installation of the software and to kick off a dialog box?
I am very new to this application so a lot of this stuff is alien to me.
I am very new to this application so a lot of this stuff is alien to me.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 15, 2012
01:09 AM
Before getting into custom actions have you tried System Search to look for file (unique) on the entire system and abort the install as an Install condition?
I just re-read your post and I feel system search view is the best option.
I just re-read your post and I feel system search view is the best option.
