Daisy
Posts: 1
Joined: Mon Aug 11, 2014 3:26 pm

Problem adding new Property

Hi,
I'm new to Advanced Installer & have been trying to fix one problem since yesterday.
When I uninstall my application, I need to delete one folder (not created as part of installation), path to the folder is C:/Users/<username>xyz (dummy name).

I defined in the “Install Parameters” page a “Property” which will store the path to the folder parent USING - C:\Users\<username>\
Then I created a new folder under "Files and Folder" using this property & tried to set xyz folder to be deleted on uninstallation.
But it gives me following error :

"The folder path '<username>' contains invalid characters".

Can you please guide me how to create a property to point current user directory in C:/Users/
Dan
Posts: 4529
Joined: Wed Apr 24, 2013 3:51 pm

Re: Problem adding new Property

Hello and welcome to Advanced Installer forums,
Can you please guide me how to create a property to point current user directory in C:/Users/
In order to achieve that you can go in the Install Parameters page and create a property. Edit its properties like that:
  • Name: MY_PROP
  • Value: C:\
Then, you can go in the Custom actions page and add the predefined Set installer property custom action with sequence with the following settings:
  • Property Name : MY_PROP
  • Formatted Text: [%USERPROFILE]
At install time the value of the MY_PROP Property will be set to the value of the USERPROFILE environment variable, which contains the full path to the current user's profile folder.

Also, keeping the SHIFT key pressed, drag-and-drop the custom action in tree control, under "Install Execution Stage -> Searches". This will create a copy of the action in Install Execution Stage.
You can also set the Scheduling Option for the custom action to “Execute only once if present in both sequence tables”.

If you have other questions, please let us know.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Feature Requests”