How to make application installation path readonly? - Advanced Installer Community
cmanalyst
Posts: 3
Joined: Thu Aug 04, 2011 3:06 am

How to make application installation path readonly?

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 make the application installation path "read-only"; ie. make it such that 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.
Amad
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: How to make application installation path readonly?

Hi Amad and welcome to our forums,

This is very simple, all you need to do is to go to Dialogs page and delete the predefined dialog "FolderDlg".
Deleting this dialog will prevent the user from changing the install path, so the default will be used.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
cmanalyst
Posts: 3
Joined: Thu Aug 04, 2011 3:06 am

Re: How to make application installation path readonly?

Bogdan,

Thank you for your quick response. Per your suggestion, I am not presented with the option to change the location.

However, I think the path that I've specified in Install Parameter section, "Application Folder" is not being used to install the application.
I know this because the application doesn't launch as expected.

Basically, I want the files to install in: C:\Program Files\IBM\Rational\Common.

My entry for the "Application Folder" field is: [ProgramFilesFolder][IBM][Rational][Common]

Shouldn't that work?
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: How to make application installation path readonly?

Hi,
My entry for the "Application Folder" field is: [ProgramFilesFolder][IBM][Rational][Common]
Shouldn't that work?
I'm afraid not as you would expect to. If you place the words "IBM, Rational, Common" between square brackets Windows Installer will
treat them as properties and try to solve them. If these are not set before the path is resolved they will be resolved to empty strings. The default
you need is the following:

Code: Select all

 [ProgramFilesFolder]IBM\Rational\Common
Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
cmanalyst
Posts: 3
Joined: Thu Aug 04, 2011 3:06 am

Re: How to make application installation path readonly?

Your example worked beautifully. Thank you!!!

Amad
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: How to make application installation path readonly?

You're welcome.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
shripath
Posts: 1
Joined: Thu Jul 23, 2015 7:12 am

Re: How to make application installation path readonly?

@Bogdan: Thanks. Such a simple but effective solution.

Return to “Common Problems”