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

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
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.
Answered 06/15/2006 by: brenthunter2005
Fifth Degree Brown Belt

Please log in to comment
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.
Answered 06/15/2006 by: sikkert
Orange Senior Belt

Please log in to comment
0
A shorter condition for uninstall would be REMOVE="ALL" ;)
Answered 06/15/2006 by: AngelD
Red Belt

Please log in to comment
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 ..
Answered 06/15/2006 by: aa006
Senior Purple Belt

Please log in to comment
0
don't think this can be done because then the sendkeys wouldn't work.
Answered 06/15/2006 by: AngelD
Red Belt

Please log in to comment
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.
Answered 06/15/2006 by: brenthunter2005
Fifth Degree Brown Belt

Please log in to comment
0
so there is no way we can hide the windows
Answered 06/15/2006 by: aa006
Senior Purple Belt

Please log in to comment
0
What is it you're trying to uninstall?
Answered 06/15/2006 by: AngelD
Red Belt

Please log in to comment
0
old version of the application.. it was build using AI builder..
Answered 06/15/2006 by: aa006
Senior Purple Belt

Please log in to comment
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
Answered 06/15/2006 by: AngelD
Red Belt

Please log in to comment
0
But will be using Active directory to deploy this application.. is there any way in put this command inside my msi...
Answered 06/15/2006 by: aa006
Senior Purple Belt

Please log in to comment
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.
Answered 06/15/2006 by: AngelD
Red Belt

Please log in to comment
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.
Answered 06/15/2006 by: wiseapp
Second Degree Green Belt

Please log in to comment
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...
Answered 06/15/2006 by: aa006
Senior Purple Belt

Please log in to comment
0
Did you look under HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall?
Answered 06/15/2006 by: wiseapp
Second Degree Green Belt

Please log in to comment
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...
Answered 06/15/2006 by: aa006
Senior Purple Belt

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