This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Re: Use pathedit or edit to show paths with ampersands
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Feb 27, 2009
06:05 AM
Use pathedit or edit to show paths with ampersands
Using a Basic MSI project i like to change the destinationfolder dialog so that the location control will be replaced with for instance a pathedit which can show a path correctly if there is an ampersand in the path. problem is that i don't see how this works. the concept of indirect property and property i find confusing.
what needs to be done so that i can show the installdir in the a newly created pathedit or edit on the destinationdialog?
what needs to be done so that i can show the installdir in the a newly created pathedit or edit on the destinationdialog?
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Mar 02, 2009
03:25 AM
I created the following solution for my problem which was a little different from what i intially was thinking of:
Using 2 different functions 1 for adding an ampersand when found in the installdir and 1 for removing so it will show the directory correctly in the pathedit control or when used for installing. If found it adds an extra ampersand. This function will be called when it goes to the dialog showing the path in the TEXT control (DestinationFolder dialog) and it calls the other function when going out of this dialog.
This is done using the MsiSetProperty function to set the INSTALLDIR property directly.
It still would be much easier if this control had a gettext/settext event or the TEXT control had a property where we can set it to use the underline feature for ampersands.
Using 2 different functions 1 for adding an ampersand when found in the installdir and 1 for removing so it will show the directory correctly in the pathedit control or when used for installing. If found it adds an extra ampersand. This function will be called when it goes to the dialog showing the path in the TEXT control (DestinationFolder dialog) and it calls the other function when going out of this dialog.
This is done using the MsiSetProperty function to set the INSTALLDIR property directly.
It still would be much easier if this control had a gettext/settext event or the TEXT control had a property where we can set it to use the underline feature for ampersands.