rofo
Posts: 7
Joined: Thu May 10, 2012 7:28 am

change public property

Hi
Have problem to change property MYAPPDIR inside a vbs file.
Created a Custom Action where a run a vbs file. In Action Data add [APPDIR]
In vbs file:

Code: Select all

path = Session.Property("CustomActionData")
If Right(path, 1) = "\" Then
   pathNew = Left(path, Len(path) - 1)
Else
   pathNew = path
End If
Session.Property("MYAPPDIR")=pathNew
Execution Optins is "Deferred with no impersonation"

Thanks
Daniel
Posts: 8239
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: change public property

Hello,

Please keep in mind that you cannot set a property through a deferred custom action because this type of custom actions do not have access to installer properties. A deferred custom action can only get a property value through CustomActionData property. So, in order to achieve what you want you should use an immediate custom action.

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

Return to “Building Installers”