- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Re: INSTALLDIR - does the location exist or will be created
- 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
INSTALLDIR - does the location exist or will be created
Hi all,
Once the user specified the install location (INSTALLDIR) I want to know if that location already exists or not.
But once the user specifies the location in 'Specify Destination Location' dialog, and before I get a chance to check if it exists or not, InstallShield goes ahead and creates the install location. How do I find out if that location existed or was created by Installshield.
thanks.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Which type of project are you using? Basic Msi?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Hi,
I am using InstallScript MSI project.
thanks.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Hi,
how do call the "Specify destionation location" dialog? Which function do you use?
I'm not 100% familiar with InstallScript (MSI) projects as I'm using 100% of the time Basic MSI installations but when I look into the help, there is a function SdAskDestPath(2) that you can call, and when you click browse within this dialog, the SelectDir function is called where you can specify if the selected directory needs to be created automatically or not.
Don't know if this answers your question?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Hi,
thanks for your response.
I call SdAskDestPath from installscript. And SdAskDestPath automatically calls SelectDir function when clicking on the Browse button. As such I have no control as to how to set bCreate parameter that SelectDir takes to either create the dir if it does not exist, or not.
Appreciate any help with this since its important for me to know if the folder existed or was created by InstallShield.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
See the attached screenshot.
Within the installscript view of your project, select from the first, left, drop down menu, dialogsource. Within the right drop down menu, next to it, select the dialog you want to modify.
The function call for the selected dialog will be added to your script and from there, you can modify the code to your own wanted behaviour.
![](/skins/images/A5EADE085F77DE82FB3B14D6B307AE6A/responsive_peak/images/icon_anonymous_message.png)