using MSI How to prevent installation on a share?

  • Thread starter Thread starter Kostia
  • Start date Start date
K

Kostia

HI,
I need to fix some installation issue where
when a dialog pops up selecting a folder where to install the software
a user has an option to enter the path manually. Which allows him to
add a share even though DirectoryCombo does not allow him to do so.
Thus installation may continue on a share. How can I prevent this from
happening? Should there be a custom action to check destination
validity?
Thanks,
Kostia
 
And if the custom action is the only way to check PathEdit to contain
non removable drive path, how can I integrate a custom action after
OK/Next has been pressed in the BrowseDlg and if the path in not good
restart BrowseDlg?
Thanks
 
Yes, you would need a custom action to check the PathEdit control property
value. As for how to integrate your custom action, you do that via the
ControlEvent table. The Ordering column allows you to order the events that
fire. The Condition column allows you to control whether or not the event fires.
Use the DoAction control event to invoke the custom action. Have that custom
action set a property if the value is valid. Then have the NewDialog control
event ordered after the DoAction control event and conditioned on the property
value. If the property is set to the value, the next dialog in the wizard
sequence is presented, otherwise you remain on the current dialog.

Hope this helps,
- Carolyn Napier
Microsoft Windows Installer Team

--
This posting is provided "AS IS" with no warranties, and confers no rights.
Please do not send email directly to this alias. This alias is for newsgroup
purposes only.
MSI FAQ:
<http://www.microsoft.com/windows2000/community/centers/management/msi_faq.mspx>
 
Back
Top