hi,

I like to add batch file to my wise package. How can i do that.. thanks
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
Hmm you've not really given us enough info here about what you are trying to achieve...

Can you elaborate?!
Answered 05/23/2006 by: MSIPackager
Third Degree Black Belt

Please log in to comment
0
this what i did under MSI script , Execute program from the Installed Files .. applicaton .exe"/s IPAddress:port;DL" ..... it works fine if i want to install but while uninstalling it comes up with error 1721.... i guess i have put if statement or something like that.. do u have any idea what it would be ?
Answered 05/23/2006 by: aa006
Senior Purple Belt

Please log in to comment
0
So I gather from what you are saying is that you've created a custom action which you only want to run on install..?

If so you need to set the following condition on it: NOT Installed

If you want the CA to run on install or repair you could try this condition: NOT REMOVE~="ALL"


Cheers,
Rob.
Answered 05/23/2006 by: MSIPackager
Third Degree Black Belt

Please log in to comment
0
yes, i have created a custom action under MSI scirpt... execute program from path... should put with If statement or with command line " NOT Installed" ??
Answered 05/23/2006 by: aa006
Senior Purple Belt

Please log in to comment
0
Yes you need to set the condition with an If NOT Installed / End If around your CA in MSI Script Editor.

Cheers,
Rob.
Answered 05/23/2006 by: MSIPackager
Third Degree Black Belt

Please log in to comment
0
Rob,

i did that , it works fine when i'm installing it.. but if i try to uninstall it comes up with error 1721... used both commaond NOT installed as well as REMOVE~="ALL" Separately but still same error shows up.. ... Any suggestion...
Answered 05/23/2006 by: aa006
Senior Purple Belt

Please log in to comment
0
Have you created a log to prove that the 1721 error is caused by your CA?

If you've set the conditions correctly the CA will only be executed on install and would be ignored during uninstall...

Cheers,
Rob.
Answered 05/24/2006 by: MSIPackager
Third Degree Black Belt

Please log in to comment
0
Will "Not Installed" condition give you the same error?
Answered 05/24/2006 by: AngelD
Red Belt

Please log in to comment
0
rob,

if i delete CA from my msi it works just fine.. i'm using NOT INSTALLED condition..
Answered 05/24/2006 by: aa006
Senior Purple Belt

Please log in to comment
0
AngelD,

it comes up with the same erro 1721 no matter what condition i use ( NOT Installed or REMOVE~="ALL")....
Answered 05/24/2006 by: aa006
Senior Purple Belt

Please log in to comment
0
Please post your CA entry from the CustomAction and InstallExecuteSequence tables so we can see how you have added the custom action.
Answered 05/24/2006 by: AngelD
Red Belt

Please log in to comment
0
Here you go,
MSI script, execute program from Installed files:
CA Name : install
Executable files: application.exe
Command Line Arguments: applicaton .exe/s IPAddress:port;-DL

End
IF NOT INSTALLED then
Execute Installed Program application.exe Command line applicaton .exe /s Adress:port;DL
End
InstallFinalize
End
Answered 05/24/2006 by: aa006
Senior Purple Belt

Please log in to comment
0
do not enter Installed in upper letter, should be "Installed"
remove the last End statement.
Answered 05/24/2006 by: AngelD
Red Belt

Please log in to comment
0
u mean to say ... it should be like

End
IF NOT Installed then
Execute Installed Program application.exe Command line applicaton .exe /s Adress:port;DL
End
InstallFinalize
Answered 05/24/2006 by: aa006
Senior Purple Belt

Please log in to comment
0
yeah, the condition should be Not Installed.
Answered 05/24/2006 by: AngelD
Red Belt

Please log in to comment
0
Ok, i did that ...it's didn't showed up with error 1721.. this time when i try to remove... but the application is still there..in control panel !!!!!
Answered 05/24/2006 by: aa006
Senior Purple Belt

Please log in to comment
0
"Not Installed" means that the CA (CustomAction) will run on installation and "REMOVE="ALL" will run on uninstallation
if the CA that runs the application.exe on install, installs something on the client you will have to add a CA on uninstallation that will reverse the action the application.exe made.
Answered 05/24/2006 by: AngelD
Red Belt

Please log in to comment
0
Correct me if i'm wrong.. here what is looks like... so i have use both statement ya

End
IF NOT Installed then
Execute Installed Program application.exe Command line applicaton .exe /s Adress:port;DL
If Remove~="ALL" then
Execute Installed Program application.exe Command line applicaton .exe /s Adress:port;DL
InstallFinalize
End
Answered 05/24/2006 by: aa006
Senior Purple Belt

Please log in to comment
0
well, not quite

if "applicaton .exe /s Adress:port;DL" will make changes to the client that command wouldn't reverse on an uninstallation just make the same changes, wouldn't it ;)

Lets make an example:
"setup.exe /install" would be used on Installation (Not Installed)
"setup.exe /remove" would be used on UnInstallation (REMOVE="ALL")
Answered 05/24/2006 by: AngelD
Red Belt

Please log in to comment
0
so what else i can try ? if use NOT Installed ( it works fine but if try to uninstall wouldn't do that )... so u mean to say for uninstalling i can't do anything...
Answered 05/24/2006 by: aa006
Senior Purple Belt

Please log in to comment
0
try to find an uninstall argument for the application.exe, have a look under HKLM\...\Uninstall to see if it add something there
Answered 05/24/2006 by: AngelD
Red Belt

Please log in to comment
0
OK.. i did find Uninstall string for the .exe.. how can i use this it has GUID ID...
Answered 05/24/2006 by: aa006
Senior Purple Belt

Please log in to comment
0
what did the UninstallString say?
Answered 05/24/2006 by: AngelD
Red Belt

Please log in to comment
0
it says UninstallString "MsiExec.exe /I{6268993F8-FCEE-4AE7-830D-9B58951FFAD13}"...
Answered 05/24/2006 by: aa006
Senior Purple Belt

Please log in to comment
0
Are you sure? that would mean that the application.exe is a wrapper and it shouldn't work to execute two msi installation in the same session.

Please verify that this isn't so.
Answered 05/24/2006 by: AngelD
Red Belt

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