SetProperty ControlEvent generates runtime error
Hi there,
While copying and modifying some standard dialogs in Wise Installer Studio 7.0 SP1 I got into trouble.
What I did:
=======
I copied the 'Browse' dialog in the 'All Dialogs' list and modified it for my purpose. Everything so far works fine and the dialog is displayed without any problems (after some tuning). In the standard 'Browse' dialog the button 'OK' has an event that calls 'SetTargetPath' with Argument [_BrowseProperty]. In the copy of my dialog I'd like to set my global property named 'MYPATH' to the value of [_BrowseProperty]. To do this I tried several syntax but nothing really worked. I tried
1. Event MYPATH, Argument [_BrowseProperty] -> during install it tells me the variable does not exist
2. Event [MYPATH], Argument [_BrowseProperty]- > during install it gets into a deadlock and breaks after several seconds
Question:
======
Is there a problem in my syntax or do I need to follow a completely different approach? The only thing I want to do is to browse for an additional path (MYPATH) with a browse dialog similar to the function in the 'Single Feature Destination' and store it in this variable if the browse dialog has been exited with OK.
Any ideas?
Thanks Dani
Comments
It looks like you've somehow switched the Event and Argument entries. MYPATH is always the argument, not the event. I do this on one of my projects where I prompt for a log file directory and stuff it into LOGPATH. My event list for the Browse button is as follows:
Event | Argument | Condition
===================
1. [_BrowseProperty] | LOGPATH | 1
2. SpawnDialog | Browse | 1
That's it.
I meant the 'OK' button in the 'Browse' dialog
Hi Bill,
Thank you for your advise. You're right for the 'Browse' button when calling the browse dialog. I got the same as you there and it works.
What I wanted to do is the opposite way. I need an event entry in the 'OK' button in the browse dialog to put the [_BrowseProperty] into my variable when OK is pressed. So that's why I switched it.
Any solution for that?
Regards Dani
*************************************
It looks like you've somehow switched the Event and Argument entries. MYPATH is always the argument, not the event. I do this on one of my projects where I prompt for a log file directory and stuff it into LOGPATH. My event list for the Browse button is as follows:
Event | Argument | Condition
===================
1. [_BrowseProperty] | LOGPATH | 1
2. SpawnDialog | Browse | 1
That's it.
Would you like to reply?
Login or Register to post your comment.