/build/static/layout/Breadcrumb_cap_w.png

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

0 Comments   [ + ] Show comments

Answers (9)

Posted by: WiseUser 19 years ago
Fourth Degree Brown Belt
2
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.
Posted by: babric 19 years ago
Senior Purple Belt
0
I solved it using a VB Script :


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
Fourth Degree Brown Belt
0
Are you using a type 50 or a type 34 CA?

I guess a type 34 would be best, otherwise you'll have to split the command line into two properties?
Posted by: babric 19 years ago
Senior Purple Belt
0
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 :


otherwise you'll have to split the command line into two properties?


How can I do that ????
Posted by: WiseUser 19 years ago
Fourth Degree Brown Belt
0
Try this:

Action :
Desinstall2

Type :
34

Source :
SystemFolder

Target :
[OTHERVERSION]
Posted by: babric 19 years ago
Senior Purple Belt
0
Error 2707 : Target paths not created. No path exists for entry [2] in Directory table.

:-(
Posted by: babric 19 years ago
Senior Purple Belt
0
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 !
Posted by: MSIMaker 19 years ago
2nd Degree Black Belt
0
Nice job WiseUser.....I'm going to rate that 2 points because it was well thought out. Sometimes we have to step back and use baby steps in order to leap forward. Well done.
Posted by: babric 19 years ago
Senior Purple Belt
0
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 ?
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ