Launch EXE CA using property is making me crazy
Hello,
I use a CA calling an EXE file with path given by a Property. The property is set by AppSearch looking at the HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{GUID_OF_MY_PRODUCT}\UninstallString KEY
So the property, called OTHER_VERSION, considering my case, is set to (I can see it calling vb Script msgbox) :
RunDll32 C:\PROGRA~1\FICHIE~1\INSTAL~1\engine\6\INTEL3~1\Ctor.dll,LaunchSetup "C:\Program Files\InstallShield Installation Information\{37D2A329-401E-4D4C-B433-55628EAD9EB3}\Setup.exe" -l0x9
But during the installation, I have a "program needed can't be executed" MSI error...
????? I really don't understand.
I think the problem is that there are arguments in the Property, but I don't have another solution because the UninstallString Value contains this arguments...
I really need help, because it is making me crazy...
I use a CA calling an EXE file with path given by a Property. The property is set by AppSearch looking at the HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{GUID_OF_MY_PRODUCT}\UninstallString KEY
So the property, called OTHER_VERSION, considering my case, is set to (I can see it calling vb Script msgbox) :
RunDll32 C:\PROGRA~1\FICHIE~1\INSTAL~1\engine\6\INTEL3~1\Ctor.dll,LaunchSetup "C:\Program Files\InstallShield Installation Information\{37D2A329-401E-4D4C-B433-55628EAD9EB3}\Setup.exe" -l0x9
But during the installation, I have a "program needed can't be executed" MSI error...
????? I really don't understand.
I think the problem is that there are arguments in the Property, but I don't have another solution because the UninstallString Value contains this arguments...
I really need help, because it is making me crazy...
0 Comments
[ + ] Show comments
Answers (9)
Please log in to answer
Posted by:
WiseUser
19 years ago
OK... let's learn to walk before we learn to run.
First, try this simple example.
Action :
Test1
Type :
34
Source :
SystemFolder
Target :
Notepad.exe
Then try creating a hard-coded property called NOTEPAD (with a value of "notepad.exe").
Action :
Test2
Type :
34
Source :
SystemFolder
Target :
[NOTEPAD]
Then try reading the value of the property called NOTEPAD from a registry key (created by you for testing purposes) using an AppSearch action.
First, try this simple example.
Test1
Type :
34
Source :
SystemFolder
Target :
Notepad.exe
Then try creating a hard-coded property called NOTEPAD (with a value of "notepad.exe").
Test2
Type :
34
Source :
SystemFolder
Target :
[NOTEPAD]
Then try reading the value of the property called NOTEPAD from a registry key (created by you for testing purposes) using an AppSearch action.
Posted by:
babric
19 years ago
I solved it using a VB Script :
But I would use MSI options, and not a VB script. Do you have any idea ?
The value I read in the Registry is :
RunDll32 C:\PROGRA~1\FICHIE~1\INSTAL~1\engine\6\INTEL3~1\Ctor.dll,LaunchSetup "C:\Program Files\InstallShield Installation Information\{37D2A329-401E-4D4C-B433-55628EAD9EB3}\Setup.exe" -l0x9
Do I have any solution to launch it without using VB script ?
Thanks !
Dim oWSH
Set oWSH= CreateObject("WScript.Shell")
oWSH.Run Property("OTHERVERSION"), 1, True
set oWSH = nothing
But I would use MSI options, and not a VB script. Do you have any idea ?
The value I read in the Registry is :
RunDll32 C:\PROGRA~1\FICHIE~1\INSTAL~1\engine\6\INTEL3~1\Ctor.dll,LaunchSetup "C:\Program Files\InstallShield Installation Information\{37D2A329-401E-4D4C-B433-55628EAD9EB3}\Setup.exe" -l0x9
Do I have any solution to launch it without using VB script ?
Thanks !
Posted by:
WiseUser
19 years ago
Posted by:
babric
19 years ago
Using CA 34 : internal error 2732
Using CA 50 : Error 1721...
Custom Action Table :
Action :
Desinstall2
Type :
34 (or 50)
Source :
OTHERVERSION
Target :
----------------------
I really don't understand...[8|]
EDIT :
How can I do that ????
Using CA 50 : Error 1721...
Custom Action Table :
Action :
Desinstall2
Type :
34 (or 50)
Source :
OTHERVERSION
Target :
----------------------
I really don't understand...[8|]
EDIT :
otherwise you'll have to split the command line into two properties?
How can I do that ????
Posted by:
WiseUser
19 years ago
Posted by:
babric
19 years ago
Posted by:
babric
19 years ago
Test 1 :
First Try
Sequenced after AppSearch > Error 2732 (This action should be sequenced after the costing actions !)
Try 2
Sequenced after CostInitialize > Error 2707 (Target paths not created. No path exists for entry [SystemFolder] in Directory table.)
Try 3
Sequenced after CostFinalize > No problems... [:D]
[8|]
Test 2 :
Try 1
No problems
Test 3 :
Try 1
No problems
So, you was right, but I did wrong... [;)]
Thanks to you, I found my sequence error. I think that there are no problems now...
Thank you for your help !
First Try
Sequenced after AppSearch > Error 2732 (This action should be sequenced after the costing actions !)
Try 2
Sequenced after CostInitialize > Error 2707 (Target paths not created. No path exists for entry [SystemFolder] in Directory table.)
Try 3
Sequenced after CostFinalize > No problems... [:D]
[8|]
Test 2 :
Try 1
No problems
Test 3 :
Try 1
No problems
So, you was right, but I did wrong... [;)]
Thanks to you, I found my sequence error. I think that there are no problems now...
Thank you for your help !
Posted by:
MSIMaker
19 years ago
Posted by:
babric
19 years ago
A problem I encoutered :
I wanted to launch a .bat file using an "Launch EXE CA".
Using a 50 CA (Launch using a Property) I never succeed in.
The property value was, for example : c:\Program files\My program\smthg.bat [parameters]
Using a 34 CA with SystemFolder as Source, an my property as Target, that works well.
Conclusion : When you want to launch a .bat file, launch it from the SystemFolder... Strange uh ?
I wanted to launch a .bat file using an "Launch EXE CA".
Using a 50 CA (Launch using a Property) I never succeed in.
The property value was, for example : c:\Program files\My program\smthg.bat [parameters]
Using a 34 CA with SystemFolder as Source, an my property as Target, that works well.
Conclusion : When you want to launch a .bat file, launch it from the SystemFolder... Strange uh ?
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.