Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

St5unst arguments

Posted on 1998-08-14
2
Medium Priority
?
559 Views
Last Modified: 2008-02-01
Which arguments does St5unst need/accept?
Shell "St5unst c:\appPath\St5unst.log"
doesn't work.
0
Comment
Question by:soeding
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 2

Accepted Solution

by:
lmorris earned 200 total points
ID: 1468824
Here's a Microsoft Knowledge base article that explains what switches. Basically, you needed to do this:

St5unst -n "c:\appPath\St5unst.log"

HOWTO: Use Setup Wizard Command Line Arguments for Silent Mode
Last reviewed: June 23, 1998
Article ID: Q182470
 
 

The information in this article applies to:
Microsoft Visual Basic Standard and Enterprise Editions for Windows, version 5.0


SUMMARY
When using the Visual Basic Setup Wizard to create an application distribution set, you can perform a silent install and uninstall of the application through the use of command-line arguments. This article documents those command-line arguments.



MORE INFORMATION
WARNING: ANY USE BY YOU OF THE INFORMATION PROVIDED IN THIS ARTICLE IS AT YOUR OWN RISK. Microsoft provides this information "as is" without warranty of any kind, either express or implied, including but not limited to the implied warranties of merchantability and/or fitness for a particular purpose.

Microsoft does not provide technical support for this feature for the following reasons:

This is an untested feature and therefore may not work as expected in some circumstances.
This feature may not exist in future releases.
This is an undocumented feature. We are documenting it in the Knowledge Base for use at your own risk.

Silent Install Usage
The following command-line syntax allows for a silent install:


   c:\mydir\setup.exe -s myapp.log

The command line above assumes "c:\mydir" is the folder that contains Setup.exe. The "-s" switch allows for the silent install, and "myapp.log" is the .log file created to track all modifications the installation makes.


Silent Uninstall Usage
The following command-line syntax allows for a silent uninstall:


   St5unst -n "C:\Program Files\MyApp\St5unst.log" -f -q

NOTE: The quotation marks are required when there is a space in the path or file name.
The command line above uses the version-specific uninstall executable with the "-n" switch, which allows the uninstall executable to run from a command line. The St5unst.log file contains all pertinent information on the installation of the application. The "-f" and "-q" switches must be used in conjunction to force an SMS uninstall, which is silent by default.

NOTE: Installing an application using the NT Schedule service with the silent or SMS parameter will not work and is not supported. The Schedule service does not create a complete copy of the environment when it launches the Setup. When Setup attempts to check for free disk space, the test fails because the TMP and TEMP environment variables are not present. Attempting to work around the problem by setting the variables in a batch file, such as the following example, also fails:


   Set TMP=C:\TEMP
   Set TEMP=C:\TMP
   Setup -q MyLog.txt

When running the Setup as an NT Service, the only alternative is to run it in interactive mode.
 

0
 
LVL 1

Author Comment

by:soeding
ID: 1468825
Thank you
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses

604 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question