How can I prevent user from changing my required destination - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

tomwms
Posts: 3
Joined: Sun Oct 05, 2008 8:22 pm

How can I prevent user from changing my required destination

I have an app that needs to be installed in a specific location on the C: drive.
Example: C:\MedicalPrograms_SouthWwest

I hardcode the above <dir> into the installer and that works okay.

However, I don't want the users to be able to "browse" around and have them install it
wherever they want to.

How can I restrict the user from changing this property?

So far all I can find is to TURN OFF ALL prompts during installation and there
should be some kind of middle ground. Turning off all prompts is scary because
it doesn't even ask you if you want to proceed. This could be disasterous if
someone clicks on this file and you already have data input in existing app.
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: How can I prevent user from changing my required destination

Hi,

The installation folder can be changed through the "FolderDlg" dialog. Therefore, you can make sure that it will not be changed by removing "FolderDlg" from the Dialogs page. Please note that this can be done only in a Professional, Java Application or Enterprise project.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”