/build/static/layout/Breadcrumb_cap_w.png

MSI with script

Hi,

I have a msi with vbscript in it, msi works just fine. My msi will uninstall the old application version & install back new version. Here is the problem while uninstall msi ask for the do you want uninstall ( Yes or No ) inside my script i'm sendkeys command to do this all features but we use AD to deploy this application.. As soon as windows log in screen loads.... i can see install my msi , when user logs on it pops up ( do you want uninstall with yes or no options) but script is taking care of that... but my question is it should not do that at all this should get done while getting ready for the widows logon screen.. Is there anyways i can hide the windows so users doesn't know what's going on ? i have already unchecked the dialog boxes ( but for the script i have no clue how to hide that for the users ) any settings , script or suggestions.. thanks in advance....

0 Comments   [ + ] Show comments

Answers (16)

Posted by: brenthunter2005 17 years ago
Fifth Degree Brown Belt
0
Are you trying to say that your MSI has a vbscript custom action that uninstalls an old version of the MSI package?

If so, you should be using the Upgrade table rather than vbscript custom actions etc.
Posted by: sikkert 17 years ago
Orange Senior Belt
0
If you want to only run the script on uninstall, you should set conditions on the script, and not let the script itself handle things. Something like "if Installed AND NOT REINSTALL AND NOT PATCH" I think should do the trick.
You should not let the script present dialogs to the user unless you REALLY need the user to choose between options.
Posted by: AngelD 17 years ago
Red Belt
0
A shorter condition for uninstall would be REMOVE="ALL" ;)
Posted by: aa006 17 years ago
Senior Purple Belt
0
Hello everyone,

old version wasn't in the msi ( it's exe ) ... so my vbscript it searching for the old exe.. & uninstalling from there.. only problem is it will prompt for the yes or no (Uninstall old version ) which i have taken care in my vbscript by sending sendkeys command but the users can see it what's it's doing ? so is there anyway i can make it not see the user what my msi is doing it when they logon... right now... when users logon .. user can see ..
Posted by: AngelD 17 years ago
Red Belt
0
don't think this can be done because then the sendkeys wouldn't work.
Posted by: brenthunter2005 17 years ago
Fifth Degree Brown Belt
0
I guess it is all to do with the Uninstall program then. Try running the uninstall using the popular "silent" switches such as /s -s /silent /quiet etc etc etc.

You basically need to discover if the Uninstall EXE supports a silent uninstallation.
Posted by: aa006 17 years ago
Senior Purple Belt
0
so there is no way we can hide the windows
Posted by: AngelD 17 years ago
Red Belt
0
What is it you're trying to uninstall?
Posted by: aa006 17 years ago
Senior Purple Belt
0
old version of the application.. it was build using AI builder..
Posted by: AngelD 17 years ago
Red Belt
0
Found this if it could help:

Use the switch /An to run the application package without displaying any dialog boxes or prompts.
Use the switches /An /Aa to run the application package without displaying any dialog boxes or prompts and to suppress a restart.

For instance, you might use the following command line:
c:\install.exe /An /Aa
Posted by: aa006 17 years ago
Senior Purple Belt
0
But will be using Active directory to deploy this application.. is there any way in put this command inside my msi...
Posted by: AngelD 17 years ago
Red Belt
0
I thought you said that the an custom action in the msi that executed a vbscript that did the uninstall? In that case you could just append the silent switch to the command line.
Posted by: wiseapp 17 years ago
Second Degree Green Belt
0
I would suggest that you should install the application (.exe) and then look under the uninstall registry key to find out if there is any silent uninstall key for the same. If there is not I would suggest to work with the keys as mentioned in this post by brent and Angel. Since its not the vbscript that is showing the dialog but the application that is trying to get uninstalled.
Posted by: aa006 17 years ago
Senior Purple Belt
0
there is no uninstall registry key ... under registry settings.. i guess we have to just deal with the windows.. i will let the Admin know..abou this...
Posted by: wiseapp 17 years ago
Second Degree Green Belt
0
Did you look under HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall?
Posted by: aa006 17 years ago
Senior Purple Belt
0
yes, nothing is there.. old packagae was created using .. AI builder ( syanamtec software ).. there was no uninstall string there.so we created that uninstall string.. add to script inside msi... ... it works just fine...
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