Change INSTALLDIR in Execute sequence
hi,
I need to change the INSTALLDIR run time.
Is there anyway to change the INSTALLDIR property in Execute sequence.
If so,can somebody can help how to do it.
I need to change the INSTALLDIR run time.
Is there anyway to change the INSTALLDIR property in Execute sequence.
If so,can somebody can help how to do it.
0 Comments
[ + ] Show comments
Answers (9)
Please log in to answer
Posted by:
nheim
16 years ago
Posted by:
Inabus
16 years ago
Posted by:
Eswari
16 years ago
I want the following code to run in silent mode(Immediate mode/diferred).
Set objNetwork = WScript.CreateObject("WScript.Network")
strMname= objNetwork.ComputerName
Set objShell = WScript.CreateObject("WScript.Shell")
'msgbox strMname
strFolder="TestServer\test"
strPath= "\\" & strMname & strFolder
Msgbox strPath
Session.Property("INSTALLDIR")=strPath
It is working in UI sequence,but not in Execute sequence.
Can somebody help me out................
Set objNetwork = WScript.CreateObject("WScript.Network")
strMname= objNetwork.ComputerName
Set objShell = WScript.CreateObject("WScript.Shell")
'msgbox strMname
strFolder="TestServer\test"
strPath= "\\" & strMname & strFolder
Msgbox strPath
Session.Property("INSTALLDIR")=strPath
It is working in UI sequence,but not in Execute sequence.
Can somebody help me out................
Posted by:
anonymous_9363
16 years ago
Posted by:
blacklisted_packager
16 years ago
Hi Eswari,
What VBScab wants to tell you is that you need to modify the script and use it as an embedded code
Set objNetwork = CreateObject("WScript.Network")
strMname= objNetwork.ComputerName
Set objShell = CreateObject("WScript.Shell")
'msgbox strMname
strFolder="TestServer\test"
strPath= "\\" & strMname & strFolder
Msgbox strPath
Session.Property("INSTALLDIR")=strPath
While calling Vbscript from embedded code Wscript.CreateObject() line wont work as msi will be using its own host engine.
What VBScab wants to tell you is that you need to modify the script and use it as an embedded code
Set objNetwork = CreateObject("WScript.Network")
strMname= objNetwork.ComputerName
Set objShell = CreateObject("WScript.Shell")
'msgbox strMname
strFolder="TestServer\test"
strPath= "\\" & strMname & strFolder
Msgbox strPath
Session.Property("INSTALLDIR")=strPath
While calling Vbscript from embedded code Wscript.CreateObject() line wont work as msi will be using its own host engine.
Posted by:
Eswari
16 years ago
However i changed the first line
Set objNetwork = CreateObject("WScript.Network")
strMname= objNetwork.ComputerName
Set objShell = CreateObject("WScript.Shell")
'msgbox strMname
strFolder="TestServer\test"
strPath= "\\" & strMname & "\" & strFolder
Msgbox strPath
Session.Property("INSTALLDIR")=strPath
But still the error exist.
So i tried another way Set Property custom action which will run in immediate mode.Here i set the property value as \\[ComputerName]\Share\dir
This is working fine.But i am not sure is it best method to set the Installdir.Will it cause any prob when deploying it in live.
Set objNetwork = CreateObject("WScript.Network")
strMname= objNetwork.ComputerName
Set objShell = CreateObject("WScript.Shell")
'msgbox strMname
strFolder="TestServer\test"
strPath= "\\" & strMname & "\" & strFolder
Msgbox strPath
Session.Property("INSTALLDIR")=strPath
But still the error exist.
So i tried another way Set Property custom action which will run in immediate mode.Here i set the property value as \\[ComputerName]\Share\dir
This is working fine.But i am not sure is it best method to set the Installdir.Will it cause any prob when deploying it in live.
Posted by:
Inabus
16 years ago
Posted by:
blacklisted_packager
16 years ago
Posted by:
anonymous_9363
16 years ago
Don't forget that you need to take account of your deployment mechanism, too. If it uses the System account (as most do) it will not have access to the network, meaning that UNC paths will be invalid.If, however, your mechanism involves bodies using a suitably-permissioned account armed with a CD/DVD walking up to boxes, you'll have no such problem.
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.