SetProperty doesnt seem to work for me - 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!

FergusMurray
Posts: 150
Joined: Thu Sep 30, 2010 10:44 am

SetProperty doesnt seem to work for me

Hi,
My project is doing quite a bit of validation on my "user settings" dialog

I seem to have run out of space on the Condition line of my NewDialog, so instead I split it up and tried to use a new property (APERTA_WBTWOVERRIDE) to test the conditions

the validation im doing is to check whether the either of two text boxes contain a different value to that returned by a combo box selection, if they do i'm launching a messagebox which asks if they want to proceed, and if they click yes then the next dialog should be shown

Next Published Events:
  • DoAction; MessageBox; Condition: (APERTA_TWEAKINGSERVER<>IISSELECTEDWEBROOT) OR (APERTA_WEBBACKEND<>IISSELECTEDWEBROOT)
    [APERTA_WBTWOVERRIDE] ; Arguement=0
    [APERTA_WBTWOVERRIDE] ; Arguement=1 ; Condition: ((APERTA_WEBBACKEND=IISSELECTEDWEBROOT) AND (APERTA_TWEAKINGSERVER=IISSELECTEDWEBROOT))OR (((APERTA_WEBBACKEND<>IISSELECTEDWEBROOT) OR (APERTA_TWEAKINGSERVER<>IISSELECTEDWEBROOT))AND APERTAMSGOUTPUT=IDYES)
    NewDialog; FolderDlg ; Condition: (AI_USER_EXISTS="Yes") AND (APERTA_PASSWORDVALID=1) AND APERTA_WBTWOVERRIDE=1
The installlog shows no sign of APERTA_WBTWOVERRIDE either getting initialised to 0, or being evaluated and being set to 1, and the next dialog does not show, but instead stays on the existing one.

install log:
  • MSI (c) (7C!1C) [11:51:59:698]: PROPERTY CHANGE: Modifying IISSELECTEDWEBROOT property. Its current value is '127.0.0.1'. Its new value: '127.0.0.1:85'.
    Action ended 11:51:59: GetWebsiteRootFromSelected. Return value 0.
    MSI (c) (7C:1C) [11:51:59:698]: Doing action: NewDialog
    Action 11:51:59: NewDialog.
    Action start 11:51:59: NewDialog.
    MSI (c) (7C:C4) [11:51:59:700]: PROPERTY CHANGE: Modifying CustomActionData property. Its current value is 'Password incorrect, or cannot be verified. Please check your settings. | User Error | MB_OK , MB_SETFOREGROUND , MB_ICONWARNING | | 11388'. Its new value: 'Tweaking Web Server or Web Backend IS NOT the same as the selected website. This should normally be the same as the selected Website (127.0.0.1).Are you sure you want to continue? | IIS Warning Error | MB_YESNO , MB_SETFOREGROUND , MB_ICONWARNING | APERTAMSGOUTPUT | 11388'.
    Action ended 11:51:59: NewDialog. Return value 1.
    MSI (c) (7C:1C) [11:51:59:700]: Doing action: MessageBox
    Action 11:51:59: MessageBox.
    Action start 11:51:59: MessageBox.
    MSI (c) (7C:6C) [11:51:59:704]: Invoking remote custom action. DLL: C:\Users\Aperta\AppData\Local\Temp\MSIE3B5.tmp, Entrypoint: MsgBox
    Action ended 11:52:03: MessageBox. Return value 1.
    MSI (c) (7C:1C) [11:52:03:844]: Doing action: NewDialog
    Action 11:52:03: NewDialog.
    Action start 11:52:03: NewDialog.
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: SetProperty doesnt seem to work for me

Hello,

Can you please send us the .AIP (project) to support at advancedinstaller dot com so we can investigate it?

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

Return to “Common Problems”