By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
445,908 Members | 2,055 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 445,908 IT Pros & Developers. It's quick & easy.

Silent Mode --- VB6 Packaging and Deployment Wizard

P: 1
I'm trying to create a "standalone" install package (without any of the dialog boxes that a standard setup package would have). I think I understand how to do it in VB6 (using PDCmdLn.exe); I have already researched this subject in the MSDN for VB6.

Here is the problem: I'm trying to execute a batch file containing this command and I'm running into a couple of errors. Here is the contents of the batch file:

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
rem
rem Create silent install package
rem
C:\
cd Program Files\Microsoft Visual Studio\vb98\wizards\PDWizard

PDCmdLn.exe "C:\Program Files\Microsoft Visual Studio\VB98\CCardProcLibCOM.vbp" /p "CC Processing Setup - Release 3" /l "C:\Temp\CCardProcLibCOM.log"

cd \
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

There's no problem with the syntax above. All of the files are where they should be. The packaging script, "CC Processing Setup" - Release 3 is also present and is the one I use for regular (assisted installs). PDCmdLn.exe apparently requires that a packaging script already exist.

When I run this batch file, the following message is logged:

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Package and Deployment Wizard - Packaging Report - 21-Aug-06, 03:46 PM
The folder 'C:\Program Files\Microsoft Visual Studio\VB98\CCardProcLibCOMSetup\CCardProcLibCOMSe tup Release 2\CCardProcLibCOMSetup Release 3' contains files or subfolders and therefore cannot be used as the package folder when running in silent mode.

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------


The folders this message refers to are automatically created during the package setup and I have no control over what happens there. I tried to issue the command as follows in the batch file:

PDCmdLn.exe "C:\Program Files\Microsoft Visual Studio\VB98\CCardProcLibCOM.vbp" /p "Standard Setup Package" /l "C:\Temp\CCardProcLibCOM.log"

since the MSDN example specifies "Internet Package" in its example. I thought this referred to the first dialog box (Package Type) in the Package and Deployment Wizard and that specifying the package name as shown above might amount to telling PDCmdLn to create a new package script. Of course, this assumption was wrong as the message in the log then read as follows:


----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Package and Deployment Wizard - Packaging Report - 21-Aug-06, 03:41 PM
The script 'Standard Setup Package' is not found.

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

.
Any ideas how I might be able to get around this? I don't understand how to create the package script in a way to satisfy the constraints posed by PDCmdLn.exe. I'm in the process of resolving an issue with an application that was installed as a client on a large of number of PCs company-wide, and part of that resolution is roll out a modified version of the credit card transaction app to all of the PCs where the current install is present. That rollout will be much harder to do manually, so our network group will attempt to do it using SMS. That approach, however, will be impossible without a silent install package.

Any insights or ideas would, of course, be greatly appreciated.
Aug 21 '06 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.