VBScript Uninstalling MSI Issue
I am creating 2 Custom Actions in Installshield.
1)AddNetworkDrive= This is basically just adding Network drives
2)DeleteNetworkDrive= This Custom action Delete Network Drive if its mapped already.
1)AddNetworkDrive Custom Action Vbscript looks like this
Set objNetwork = CreateObject("WScript.Network")
objNetwork.MapNetworkDrive "H:", "\\allan\xyz"
objNetwork.MapNetworkDrive "I:", "\\allan\xyz"
objNetwork.MapNetworkDrive "J:", "\\allan\xyz"
objNetwork.MapNetworkDrive "K:", "\\allan\xyz"
Install Exec Sequence= After InstallInitialize
Install Exec Condition= "NOT Installed"
2)DeleteNetworkDrive Custom Action has the following script
Set oShell = CreateObject("WScript.Shell")
Set oNetwork = CreateObject("WScript.Network")
dr = "H:"
oNetwork.RemoveNetworkDrive dr, True, True
drv = "I:"
oNetwork.RemoveNetworkDrive drv, True, True
dr = "J:"
oNetwork.RemoveNetworkDrive dr, True, True
drv = "K:"
oNetwork.RemoveNetworkDrive drv, True, True
Install Exec Sequence= After InstallFinalize
Install Exec Condition= REMOVE="ALL"
Upon Uninstalling the msi i get the following error
ERROR 1720.There is a problem with this windows Installer package. Custom action AddNetworkDrive script error -2147024811.
Any help guys with the error?
1)AddNetworkDrive= This is basically just adding Network drives
2)DeleteNetworkDrive= This Custom action Delete Network Drive if its mapped already.
1)AddNetworkDrive Custom Action Vbscript looks like this
Set objNetwork = CreateObject("WScript.Network")
objNetwork.MapNetworkDrive "H:", "\\allan\xyz"
objNetwork.MapNetworkDrive "I:", "\\allan\xyz"
objNetwork.MapNetworkDrive "J:", "\\allan\xyz"
objNetwork.MapNetworkDrive "K:", "\\allan\xyz"
Install Exec Sequence= After InstallInitialize
Install Exec Condition= "NOT Installed"
2)DeleteNetworkDrive Custom Action has the following script
Set oShell = CreateObject("WScript.Shell")
Set oNetwork = CreateObject("WScript.Network")
dr = "H:"
oNetwork.RemoveNetworkDrive dr, True, True
drv = "I:"
oNetwork.RemoveNetworkDrive drv, True, True
dr = "J:"
oNetwork.RemoveNetworkDrive dr, True, True
drv = "K:"
oNetwork.RemoveNetworkDrive drv, True, True
Install Exec Sequence= After InstallFinalize
Install Exec Condition= REMOVE="ALL"
Upon Uninstalling the msi i get the following error
ERROR 1720.There is a problem with this windows Installer package. Custom action AddNetworkDrive script error -2147024811.
Any help guys with the error?
0 Comments
[ + ] Show comments
Answers (5)
Please log in to answer
Posted by:
AngelD
15 years ago
Posted by:
chichora2003
15 years ago
Posted by:
anonymous_9363
15 years ago
Posted by:
shweta_kar
15 years ago
Posted by:
anonymous_9363
15 years ago
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.