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!

MLiss@Cetrus.com
Posts: 366
Joined: Wed Dec 30, 2015 5:40 pm

Re: Read registry value for path

I don't know what you mean by this sentence:

The value of the "MANAGER_INSTALL_DIR" property should be assigned to the "APPDIR" property, not the "MANAGER_INSTALL_DIR" value itself.
MLiss@Cetrus.com
Posts: 366
Joined: Wed Dec 30, 2015 5:40 pm

Re: Read registry value for path

I am attaching BOTH installer AIP files for your inspection.

Tester.aip is the main application
SoftwareInventory.aip is the installer that reads the registry values ( this one has the issue )

Thanks
Mike
Attachments
RegistryReadProblem.zip
Registry read problem
(35.23 KiB) Downloaded 319 times
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Read registry value for path

Hi Mike,
You might have written that value in the "Install Parameters" page or in a "Set installer property" custom action.
As I mentioned, it seems that you set the "APPDIR" property to the "MANAGER_INSTALL_DIR" value in the "SearchRegistryForManagerInstallDirectory" custom action that you created in the "Custom Actions" page. This is not correct because in the "APPDIR" property will be written exactly the "MANAGER_INSTALL_DIR" string.

In order to set the "APPDIR" property to the path contained by the "MANAGER_INSTALL_DIR" property you need to create the "SearchRegistryForManagerInstallDirectory" custom action like this:
  • Property: APPDIR
    Value: [MANAGER_INSTALL_DIR]
    (as you did in the Init event from the "FolderDlg" dialog)
Also, I recommend you to set the "UILevel < 5" condition for that custom action so it will not be executed when the "FolderDlg" init event was already executed.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
MLiss@Cetrus.com
Posts: 366
Joined: Wed Dec 30, 2015 5:40 pm

Re: Read registry value for path

So the problem was to use

[Manager_install_Dir]

instead of

Manager_Install_Dir

That fixed it.
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Read registry value for path

I'm glad you got this working.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”