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....
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)
Please log in to answer
Posted by:
brenthunter2005
17 years ago
Posted by:
sikkert
17 years ago
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.
You should not let the script present dialogs to the user unless you REALLY need the user to choose between options.
Posted by:
aa006
17 years ago
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 ..
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
Posted by:
brenthunter2005
17 years ago
Posted by:
AngelD
17 years ago
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
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
Posted by:
AngelD
17 years ago
Posted by:
wiseapp
17 years ago
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
Posted by:
wiseapp
17 years ago
Posted by:
aa006
17 years ago
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.