Luftzugdackel
Posts: 13
Joined: Thu Dec 19, 2013 5:07 pm

Re: How to change a variable value?

Hey Dan,

and merry christmas! :D

I attached the file!
But I think it is not necessary...the problem is, that it has worked before. Damn.
The only difference is that the InstallDlg is now thin not bold, maybe this could the problem?
With the WelcomeDlg the Customer can choose a Maya-Version and the variable "mayaVersion" will be modified with 2008, 2009, 2010 and so on.

Thank you so much for taking your time but I am a perfectionist! LOL :D
Attachments
AelfscieneBOX_Setup_Test.aip
(64.51 KiB) Downloaded 408 times
Dan
Posts: 4529
Joined: Wed Apr 24, 2013 3:51 pm

Re: How to change a variable value?

Hi,

Please keep in mind that dialogs with their name bold define the start of a dialog sequence. A dialog sequence refers to a set of dialogs that are displayed during the same Standard Action.

For example:WelcomeDlg, FolderDlg, VerifyReadyDlg are all part of the Wizard Dialogs Stage WelcomeDlg Standard Action. Dialogs triggered by control events have a lightning symbol on their icon as you can see on the InstallDlg dialog from your project.

You can also take a look on the Dialogs article which may be useful to you.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Luftzugdackel
Posts: 13
Joined: Thu Dec 19, 2013 5:07 pm

Re: How to change a variable value?

Yes I know that but this will not fix my problem I guess!
The Path Object shows the property APPDIR, APPDIR is modiefied with the variable mayaVersion
It looks like that APPDIR does only show the standardvalue 2008 which is the standard bzw. default for mayaVersion.

You can try it. Just build my project and choose another Maya-Version on the WelcomeDlg. Everytime you enter the next dialog the Path looks like this: "C:\Users\>USERNAME<\Documents\maya\2008-x64\
Luftzugdackel
Posts: 13
Joined: Thu Dec 19, 2013 5:07 pm

Re: How to change a variable value?

Hi Dan,

and merry christmas! :D
I just want to say, that the problem still exists.
Everything is working right now but on the InstallDlg the APPDIR Path is not correct. On the WelcomeDlg The User has to choose the Maya Version, for example "2008" this value will be stored in the variable "mayaVersion" and than the user has to press the "OK"-Button. The variable "mayaVersion" is part of the Application-Folder path with but on the next Page the "InstallDlg"-Page the APPDIR-Path is not correct and looks like this: "C:\Users\>USERNAME<\Documents\maya\2008-x64\" and the Maya-Version is set to 2008. Everytime.

It would be great if you can check this again. Thank you very much and I hope we will fix that prob today! :)

Andy
Dan
Posts: 4529
Joined: Wed Apr 24, 2013 3:51 pm

Re: How to change a variable value?

Hi Andy,

First of all I apologize for my delay reply.

Indeed, the value of APPDIR is not updated according to the user choice. This is happening because the value of APPDIR is set before the Welcome dialog even be displayed.
You can see that in the InstallUISequence table from the Table editor page.

In order to achieve what you want, here is what you can do:
- in the Install Parameters page set the Application Folder to something like that: [PersonalFolder]\maya\
- on the OK button from the WelcomeDlg add a Set installer property value Published Events as follows:
  • Property field : [APPDIR]
    Argument field : [APPDIR][mayaVersion][osBitProp]
This way you will update the value of the installation folder as you want. Also, I've attached a .zip archive which contains a sample which implement this scenario.

If you need any help, please let me know.

Best regards,
Dan
Attachments
Sample.zip
(4.42 KiB) Downloaded 385 times
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Feature Requests”