Problem in Accpeting Installtion drive from user - 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!

Prasad
Posts: 25
Joined: Fri May 25, 2012 12:55 pm

Problem in Accpeting Installtion drive from user

Hi,

As per requirements of my project, to install the software I need to accept only the drive name and not the entire installation path.
User should enter only drive name and software should get installed in Program files folder in that drive. (e.g when user enters E:\ the software should automatically get installed to E:\Program Files\Software Name).
I am using Path Edit control for the same.
I tried following : in Install Parameters -> Installation Folders -> Application Folder I entered property [WindowsVolume]
now when I run the setup, I can see default installation drive as C:\ , as per my requirement.
I used Published Event on Next button. In that I used control event SetTargetPath and argument as APPDIR (property of Path Edit). but it installs software at C:\.

Please tell me how to accomplish the task. can I use a different property instead of APPDIR ?

Please note that Browse button should not be provided to user.
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Problem in Accpeting Installtion drive from user

Hello,

Here's Installing at User defined paths thread to help you with this.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”