spider314159
Posts: 3
Joined: Mon Nov 27, 2017 7:01 am

Path is not successfully modified through path edit

Hi Support,
I want to select the repository path for the database during the program installation. Create new property "WEIBU_DATA",default value "D:\Weibu_Data".
I configure it according to the steps in the following picture.But It is always the default value(D:\Weibu_Data) after installation.The modified property is invalid.View the installation log,When the path is modified, the parameters are modified successfully.But When installed, the parameter is changed to default.
Do you know what is the cause of the problem?
01.png
01.png (87.54 KiB) Viewed 2243 times
4.png
4.png (3.81 KiB) Viewed 2243 times
5.png
5.png (13.6 KiB) Viewed 2243 times
Daniel
Posts: 8238
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Path is not successfully modified through path edit

Hello and welcome to our forums,

I'm not so sure why this happens.

Can you please send us the .AIP (project file) and a verbose log of the installation to support at advancedinstaller dot com so we can investigate them?

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
spider314159
Posts: 3
Joined: Mon Nov 27, 2017 7:01 am

Re: Path is not successfully modified through path edit

Hello Daniel,
Thanks for your reply.
Daniel wrote: Can you please send us the .AIP (project file) and a verbose log of the installation to support at advancedinstaller dot com so we can investigate them?
The attachment is the document you want.
Best regards
Attachments
WeiBuServer - datadir.aip
(105.59 KiB) Downloaded 216 times
verbose log.txt
(376.61 KiB) Downloaded 153 times
Daniel
Posts: 8238
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Path is not successfully modified through path edit

Hello,

Thank you for your sent file.

This happens because your folder property is a private property (i.e. contains lower letters in its name - WeiBuDataDir). To achieve what you want you should use a public property name (i.e. WEIBU_DATA).

When the installation passes from the dialogs stage to the install execution stage the values (set during dialogs stage) of the private properties are reset to their default values. This is the behavior of Windows Installer. Only the public property values are preserved when the installation passes from dialogs stage to the execution stage (i.e. after pressing the [Install] button).

So, just delete your property-based folder from "Files and Folders" page, go to "Install Parameters" page and delete the current property, define a new public property and create a new property-based folder with the new created property.

Let us know if this helped.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
spider314159
Posts: 3
Joined: Mon Nov 27, 2017 7:01 am

Re: Path is not successfully modified through path edit

Hello Daniel,
Thanks for the tip, it seems to be working.

Best regards
Daniel
Posts: 8238
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Path is not successfully modified through path edit

You are always welcome.

Do not hesitate to write us anytime you have a question.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”