cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
mary_v
Level 6

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
Labels (1)
0 Kudos
(3) Replies
joshstechnij
Level 10 Flexeran
Level 10 Flexeran

From the MsiSetTargetPath doc:
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.
0 Kudos
mary_v
Level 6

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
0 Kudos
joshstechnij
Level 10 Flexeran
Level 10 Flexeran

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.
0 Kudos