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: MsiSetTargetPath problem
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
‎May 19, 2009
12:34 PM
MsiSetTargetPath problem
Hi,
I need to be able to set a path variable to a networkshare which does not necessarily be writable.
Using MsiSetTargetPath everything is ok until the share is readonly... then my trouble begins and MsiSetTargetPath fails...
Are there any suggestions to work around this?
Thanks in advance
Mary
I need to be able to set a path variable to a networkshare which does not necessarily be writable.
Using MsiSetTargetPath everything is ok until the share is readonly... then my trouble begins and MsiSetTargetPath fails...
Are there any suggestions to work around this?
Thanks in advance
Mary
(3) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 19, 2009
02:00 PM
From the MsiSetTargetPath doc:
Since this appears to be expected behavior, there likely isn't much that can be done to work around it. In the case of an error, you could report this back to the user and require that they allow write access to the share/folder.
MsiSetTargetPath fails if the selected directory is read only.
Since this appears to be expected behavior, there likely isn't much that can be done to work around it. In the case of an error, you could report this back to the user and require that they allow write access to the share/folder.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 20, 2009
01:39 AM
ok, I understand, but exists another function to create shortcuts to readonly shares?
What is the best way to deal with it - in fact, to launch an exe, the share must not be writeable...
Mary
What is the best way to deal with it - in fact, to launch an exe, the share must not be writeable...
Mary
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 20, 2009
12:54 PM
You may try using the Shortcuts view to have MSI create the shortcut for you, or, if you are using InstallScript custom actions, you can call the AddFolderIcon function to create a shortcut.