How to make application installation path fixed C:\ dive? - Advanced Installer Community
saidurwd
Posts: 2
Joined: Tue Aug 11, 2015 11:28 am

How to make application installation path fixed C:\ dive?

Hello,

I am new to the world of application installation & packaging. I also quite new to Advanced Installer.

I have managed to create an installation .msi that is working for us. The one thing I would like to change is to fixed the application installation path ie. direct C:\ drive (not program folder) also the user does not have an option to select an alternate location.

Can someone please tell me how this can be accomplished? I am using the free version of Advanced Installer (and am quite impressed by it's ease of use and capabilities).

Regards
-Saidur
saidurwd
Posts: 2
Joined: Tue Aug 11, 2015 11:28 am

Re: How to make application installation path fixed C:\ dive?

Solution found, just using C:\. Thank you advancedinstaller.
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: How to make application installation path fixed C:\ dive?

Hello Saidur and welcome to Advanced Installer forums,

Thank you for your kind words.
The one thing I would like to change is to fixed the application installation path ie. direct C:\ drive (not program folder)
[...]
Solution found, just using C:\
In the Application Folder field from the Install Parameters you can set the default installation path. However, note that it is not a best practice to use a hardcoded value (e.g. C:\). There might be cases when this partition does not exist on the target machine and the installation will fail. Instead, you should use the WindowsVolume property. So, just add a reference to this property in the Application Folder field:

Code: Select all

[WindowsVolume]
also the user does not have an option to select an alternate location.
If you don't want the user to change the installation path, you can select the FolderDlg from the Dialogs page and set the Enabled attribute with False for the Path Edit and Browse... controls.

Should there be any difficulty you encounter implementing something, please do not hesitate to contact me and I will gladly assist.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
adamdc78
Posts: 76
Joined: Wed Mar 19, 2014 7:42 pm

Re: How to make application installation path fixed C:\ dive?

Be very certain that you know what you are doing before forcing an application to install to the root of a drive. You do not want to inadvertently remove something important on an uninstall.

Return to “Common Problems”