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
- :
- Re: Change the path of INSTALLDIR and folder.
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 28, 2009
11:51 PM
Change the path of INSTALLDIR and folder.
Hi,
I have created a new folder "ProgramData"[INSTALLDIR]. Now when ever I install this application on any PC it is installed at "C:\ProgramData" which is what I want.
Now the problem is if some other other drive is connected to the PC which have large amount of free space, the application gets installed there for e.g. "F:\ProgramData" and my application crashes.
I want my application to be installed at C:\ drive.
I am not showing user option of selecting the place where user wants to install the application.
Please note I am using "Basic MSI Project" of installshied.
Is there any way where I can hardcode the path for INSTALLDIR and other folders.
Thanks in advance.
Regards,
Mandy.
I have created a new folder "ProgramData"[INSTALLDIR]. Now when ever I install this application on any PC it is installed at "C:\ProgramData" which is what I want.
Now the problem is if some other other drive is connected to the PC which have large amount of free space, the application gets installed there for e.g. "F:\ProgramData" and my application crashes.
I want my application to be installed at C:\ drive.
I am not showing user option of selecting the place where user wants to install the application.
Please note I am using "Basic MSI Project" of installshied.
Is there any way where I can hardcode the path for INSTALLDIR and other folders.
Thanks in advance.
Regards,
Mandy.
(3) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 30, 2009
09:34 PM
You could set TARGETDIR with a set property custom action to C:\. However, this should only be done if the C: drive exists on a target machine. If it doesn't and TARGETDIR is set to C:\, the installation will fail with a 1606 (could not access network location) error.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 06, 2009
04:25 AM
joshstechnij wrote:
You could set TARGETDIR with a set property custom action to C:\. However, this should only be done if the C: drive exists on a target machine. If it doesn't and TARGETDIR is set to C:\, the installation will fail with a 1606 (could not access network location) error.
Thanks for reply,
Can you elaborate this in the steps as I am new to this.
Thanks,
Mandy
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 06, 2009
11:28 AM
You will actually want to set INSTALLDIR with a set property custom action:
1. Create a new Set Property custom action in the Custom Actions view.
2. Use the following settings in the action:
Property Name: INSTALLDIR
Property Value: desired path (i.e. C:\Path)
Install UI Sequence: After AppSearch
Install UI Condition: Not Installed
This action should also be sequenced in the execute sequence if this package can be installed silently.
1. Create a new Set Property custom action in the Custom Actions view.
2. Use the following settings in the action:
Property Name: INSTALLDIR
Property Value: desired path (i.e. C:\Path)
Install UI Sequence: After AppSearch
Install UI Condition: Not Installed
This action should also be sequenced in the execute sequence if this package can be installed silently.