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

Comments

Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Answers

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 !
Answered 07/28/2005 by: babric
Senior Purple Belt

Please log in to comment
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?
Answered 07/28/2005 by: WiseUser
Fourth Degree Brown Belt

Please log in to comment
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 ????
Answered 07/28/2005 by: babric
Senior Purple Belt

Please log in to comment
0
Try this:

Action :
Desinstall2

Type :
34

Source :
SystemFolder

Target :
[OTHERVERSION]
Answered 07/28/2005 by: WiseUser
Fourth Degree Brown Belt

Please log in to comment
0
Error 2707 : Target paths not created. No path exists for entry [2] in Directory table.

:-(
Answered 07/28/2005 by: babric
Senior Purple Belt

Please log in to comment
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.
Answered 07/28/2005 by: WiseUser
Fourth Degree Brown Belt

Please log in to comment
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 !
Answered 07/29/2005 by: babric
Senior Purple Belt

Please log in to comment
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.
Answered 07/29/2005 by: MSIMaker
Second Degree Black Belt

Please log in to comment
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 ?
Answered 07/30/2005 by: babric
Senior Purple Belt

Please log in to comment
Answer this question or Comment on this question for clarity