/build/static/layout/Breadcrumb_cap_w.png

how to add batch file using wise package

hi,

I like to add batch file to my wise package. How can i do that.. thanks

0 Comments   [ + ] Show comments

Answers (25)

Posted by: MSIPackager 14 years ago
3rd Degree Black Belt
0
Hmm you've not really given us enough info here about what you are trying to achieve...

Can you elaborate?!
Posted by: aa006 14 years ago
Senior Purple Belt
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 ?
Posted by: MSIPackager 14 years ago
3rd Degree Black Belt
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.
Posted by: aa006 14 years ago
Senior Purple Belt
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" ??
Posted by: MSIPackager 14 years ago
3rd Degree Black Belt
0
Yes you need to set the condition with an If NOT Installed / End If around your CA in MSI Script Editor.

Cheers,
Rob.
Posted by: aa006 14 years ago
Senior Purple Belt
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...
Posted by: MSIPackager 14 years ago
3rd Degree Black Belt
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.
Posted by: AngelD 14 years ago
Red Belt
0
Will "Not Installed" condition give you the same error?
Posted by: aa006 14 years ago
Senior Purple Belt
0
rob,

if i delete CA from my msi it works just fine.. i'm using NOT INSTALLED condition..
Posted by: aa006 14 years ago
Senior Purple Belt
0
AngelD,

it comes up with the same erro 1721 no matter what condition i use ( NOT Installed or REMOVE~="ALL")....
Posted by: AngelD 14 years ago
Red Belt
0
Please post your CA entry from the CustomAction and InstallExecuteSequence tables so we can see how you have added the custom action.
Posted by: aa006 14 years ago
Senior Purple Belt
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
Posted by: AngelD 14 years ago
Red Belt
0
do not enter Installed in upper letter, should be "Installed"
remove the last End statement.
Posted by: aa006 14 years ago
Senior Purple Belt
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
Posted by: AngelD 14 years ago
Red Belt
0
yeah, the condition should be Not Installed.
Posted by: aa006 14 years ago
Senior Purple Belt
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 !!!!!
Posted by: AngelD 14 years ago
Red Belt
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.
Posted by: aa006 14 years ago
Senior Purple Belt
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
Posted by: AngelD 14 years ago
Red Belt
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")
Posted by: aa006 14 years ago
Senior Purple Belt
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...
Posted by: AngelD 14 years ago
Red Belt
0
try to find an uninstall argument for the application.exe, have a look under HKLM\...\Uninstall to see if it add something there
Posted by: aa006 14 years ago
Senior Purple Belt
0
OK.. i did find Uninstall string for the .exe.. how can i use this it has GUID ID...
Posted by: AngelD 14 years ago
Red Belt
0
what did the UninstallString say?
Posted by: aa006 14 years ago
Senior Purple Belt
0
it says UninstallString "MsiExec.exe /I{6268993F8-FCEE-4AE7-830D-9B58951FFAD13}"...
Posted by: AngelD 14 years ago
Red Belt
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.
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