Problems inserting vbscript AND wisescript CustomAction
Trying to get a fix out there.
I have a vbscript to unmap a few drives and a Wisescript to delete some files. I had both inserted in ExecuteImmediate, after InstallInitialize and only the wisescript was successfully executed. I moved vbscript CA to Execute deferred, before InstallFinalize, but got the same result.
When the vbscript and Wisescript were individually added to the MSI they worked properly, and obviously when I manually run each script they run properly.
What am I missing here?
I have a vbscript to unmap a few drives and a Wisescript to delete some files. I had both inserted in ExecuteImmediate, after InstallInitialize and only the wisescript was successfully executed. I moved vbscript CA to Execute deferred, before InstallFinalize, but got the same result.
When the vbscript and Wisescript were individually added to the MSI they worked properly, and obviously when I manually run each script they run properly.
What am I missing here?
0 Comments
[ + ] Show comments
Answers (10)
Please log in to answer
Posted by:
urban_diver
18 years ago
Posted by:
Bladerun
18 years ago
Sloppy, but I was in a hurry and found this in my achive of "back-in-the-day-when-i-thought-i-could-code" codes.
Set oShell = WScript.CreateObject("WScript.Shell")
Set oNetwork = WScript.CreateObject("WScript.Network")
dr = "j:"
oNetwork.RemoveNetworkDrive dr, True, True
drv = "q:"
oNetwork.RemoveNetworkDrive drv, True, True
Posted by:
urban_diver
18 years ago
Posted by:
urban_diver
18 years ago
Posted by:
Bladerun
18 years ago
Posted by:
urban_diver
18 years ago
Posted by:
Bladerun
18 years ago
Posted by:
Bladerun
18 years ago
Posted by:
mgroover
18 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.