SMS Installer Packages

Goto the SMS Installer Home Page

This page details problems and issues relating to SMS Installer Scripts.

Beginner’s Guide to Creating Packages

Contributed By: Terry Matthews and Cathy Moya [MS]
Wondering how to create packages using SMS Installer? Here’s some help and advice  [Go to article]
 

Can I Add a Transform MST File to an SMS Package Using an MSI Software Package?

Contributed By: Terry Matthews
The answer is yes and here’s how to do it  [Go to article]
 

Distributing Flash 6

Contributed By: Richard Threlkeld
So you want to rollout Flash 6 but you're not to sure how too go about it? Well let us offer some advice…  [Go to article]
 

Dr. Watson Error When Packaging Publisher 2000

Contributed By: Hans Schefske MVP SMS
If you’re trying to package Microsoft Publisher 2000 and you’re getting a Dr. Watson error at the end of the packaging process then here’s an alternative way of doing this…  [Go to article]
 

Getting IE 5.x to Install on NT 4 Using SMS

We can't seem to get Internet Explorer 5.x installations to work properly. Has anyone else experienced difficulty in installing IE 5.x manually or via SMS? We're heavy users of Ghost and I think that some of the images were created from PCs with botched IE installs.

I've tried using SMS installer's repackaging feature to make a IE installation but when I tested it the installation won't start. I wish I could suppress the reboot after the IE installation; it ends up rebooting in the middle of the re-packaging process. SMS Installer does seem to pick up the re-packaging right where it left off before the reboot, but the final product never works.

Does anyone have any experience with this?

Contributed By: Cliff Hobbs [MVP SMS]
Check out Knowledge Base Article 223372 'How to Install Internet Explorer 5 to Windows NT 4.0 Using Systems Management Server 2.0.'
 

How To Set the Read Attribute For a File

Contributed By: Terry Matthews
Wondering how to set the Read attribute for a file with SMS Installer?..  [Go to article]
 

Installation Files Deleted Before The Installation Completes

Contributed By: Rod Trent [MVP SMS]
Got a problem with your installation files being deleted before the application has been installed even though you’ve got "Wait for Program to Exit" checked?..  [Go to article]
 

Installing McAfee with SMS

We have 350 NT 4 Workstations currently running version 4.2 and 4.3 of Virus Scan for NT. We want everyone to be upgraded to 4.5 with the latest DAT file, remotely via Microsoft SMS. I have used the McAfee installation designer to create a custom MSI package the way we want it.

I have used SMS to distribute the Windows Installer to all clients. The problem is that previous versions of Virus Scan must be uninstalled first. So how can this be done via SMS? For example I need to create a package that will uninstall the previous version, reboot, automatically log on, install 4.5, reboot and return control to the user. No user input is required. Does anyone have any ideas or scripts that can do this? I was thinking of hacking the script for IE5.

Contributed By: Cliff Hobbs [MVP SMS]
In order to do this you'll need to create two packages.

The first is an uninstall package that is just a batch file containing the lines:

<path to mcafee>wincmdr -i<path to mcafee>wincmdrsil
del c:\program*.*

This package should then reboot the machine.

The second package contains the installation package containing the setup (you'll need to change the MSI file with McAfee Installation Designer with the latest DAT file, SP1 and engine). The command needs to be:

setup INSTALLPATH="<path to mcafee>" -q -i

MID can be downloaded from:

http://www.mcafeeb2b.com/naicommon/download/upgrade/upgrades-mcafee.asp?G=(Grantnumber here)

Installing Visio 2000 Using SMS

Using the following process you can install Visio 2000 using SMS but you aren't able to customize the installation path:

  • Install it with '/a' to a server (share-point)
     

  • Using the Office installation wizard, customise settings like company (Note: the Installation path will be ignored - don't know why)
     

  • Install Visio (it's a local-installation!):
    msiexec /i \\servername\visio2000std\1Engine.msi /qn /LIME c:\temp\visiosetup.log
    msiexec /i \\servername\visio2000std\DE_Add-ons.MSI /qn /LIME c:\temp\visiosetup.log
    msiexec /i \\servername\visio2000std\DE_Block_Diagrams.MSI /qn /LIME c:\temp\visiosetup.log
    msiexec /i \\servername\visio2000std\DE_Block_Diagrams_Help.MSI /qn /LIME c:\temp\visiosetup.log
    msiexec /i \\servername\visio2000std\DE_Block_Diagrams_Samples.MSI /qn /LIME c:\temp\visiosetup.log
    etc.

    this is where you decide which features you want to install
     

  • uninstall Visio:
    msiexec /X \\servername\visio2000std\1Engine.msi /qn /LIME c:\temp\visiosetup.log
    etc.

An alternative method contributed by Rich Wood:
I'm sure I'm the last one to figure out the Visio 2000 Standard unattended installation, but just in case I'm not, I've created a package from the October Select CD that works on Windows 95 (with or without Profiles enabled), or NT and needs no reboots. The only prerequisite is IE 5.0.

Preparation:
Copy the '
\bin' and '\unattended' directories from your October 2000 Select CD to your '%inst%' directory. Rename the '\unattended\program files\Microsoft Visio' directory to '\unattended\program files\visio'.

First, for Windows 95 installations only:
Using '
ORCA', edit the 'Vis2000.msi'. Go to the 'Registry' table and edit the 'DigitalProductId' value. Instead of reading '[DPID]' it should read 'No Value'. Then go to the 'Directory' table and edit the 'INSTALLDIR' field so that the 'DefaultDir' is 'Visio'. Save this file as 'Visio95.msi' and place it in the '\Unattended' directory.

Second, download the latest Windows Installer files. Version 1.2 or later. Put them in their respective '
\bin\sp\msi\Win9x' or '\Winnt' directory. The versions on the CD do not support silent install.

Finally, here is the order of events that I call in my Installer script:

%inst%\bin\sp\msi\win9x\instmsia.exe /q
%inst%\bin\sp\mdac\mdac_typ.exe /q
%sys%\msiexec.exe /i %inst%\bin\sp\dao\dao.msi /qr
%inst%\bin\sp\hhupd\hhupd.exe /q
%sys%\msiexec.exe /i %inst%\bin\sp\vba\vba6.msi /qr
%sys%\msiexec.exe /i %inst%\bin\sp\spcore\spcore.msi REBOOT=S
%sys%\msiexec.exe /i %inst%\unattended\visio95.msi /qr

If you are doing this on NT Workstation make sure you use the original 'Vis2000.msi' in the last line, instead of the one you created for Windows 95. Obviously you should reboot at the end of the whole process, but even that is not necessary. (Not to mention the two or three reboots that Microsoft recommends). By the way, it actually works when you turn Profiles on in a Windows 95 environment.
 

Packaging an Application So That It Asks for a License Number Before it Installs

Contributed By: Cliff Hobbs [MVP SMS]
Can you package an application so that it asks for the license number before it will install? Find out the answer ... [Go to article]
 

Packaging Norton AntiVirus Clients

Has anyone successfully packaged Norton AntiVirus Clients within SMS ? If so please let me know how. I've tried numerous ways and have been unsuccessful.

Contributed By: Hans Schefske [MVP SMS]
Have you tried creating a wrapper for the install? How about trying something like this:

(copy and paste the below script in between the lines into script editor in SMS Installer)

==========================================================
item: Install File
  Source=Q:\NAV75\Packaging\Source\CLIENTS\Win32\*.*
  Destination=%TEMP%\Nav751\
  Flags=0000000100100010
end
item: Execute Program
  Pathname=%TEMP%\NAV751\instmsiw.exe
  Command Line=/q
  Flags=00000010
end
item: Execute Program
  Pathname=%SYS32%\msiexec.exe
  Command Line=/I c:\temp\nav751\navce.msi /qn
  Flags=00000010
end
item: Edit Registry
  Total Keys=14
  item: Key
    Key=SOFTWARE\INTEL\LANDesk\VirusProtect6\CurrentVersion\PatternManager\Schedule
    New Value=0
    Value Name=DayOfWeek
    Root=2
    Data Type=3
  end
  item: Key
    Key=SOFTWARE\INTEL\LANDesk\VirusProtect6\CurrentVersion\PatternManager\Schedule
    New Value=1
    Value Name=Type
    Root=2
    Data Type=3
  end
  item: Key
    Key=SOFTWARE\INTEL\LANDesk\VirusProtect6\CurrentVersion\PatternManager\Schedule
    New Value=0
    Value Name=DayOfMonth
    Root=2
    Data Type=3
  end
  item: Key
    Key=SOFTWARE\INTEL\LANDesk\VirusProtect6\CurrentVersion\PatternManager\Schedule
    New Value=0
    Value Name=RandomizeDayEnabled
    Root=2
    Data Type=3
  end
  item: Key
    Key=SOFTWARE\INTEL\LANDesk\VirusProtect6\CurrentVersion\PatternManager\Schedule
    New Value=0
    Value Name=RandomizeWeekEnabled
    Root=2
    Data Type=3
  end
  item: Key
    Key=SOFTWARE\INTEL\LANDesk\VirusProtect6\CurrentVersion\PatternManager\Schedule
    New Value=0
    Value Name=RandomizeMonthEnabled
    Root=2
    Data Type=3
  end
  item: Key
    Key=SOFTWARE\INTEL\LANDesk\VirusProtect6\CurrentVersion\PatternManager\Schedule
    New Value=984795066
    Value Name=Created
    Root=2
    Data Type=3
  end
  item: Key
    Key=SOFTWARE\INTEL\LANDesk\VirusProtect6\CurrentVersion\PatternManager\Schedule
    New Value=0
    Value Name=SkipEvent
    Root=2
    Data Type=3
  end
  item: Key
    Key=SOFTWARE\INTEL\LANDesk\VirusProtect6\CurrentVersion\PatternManager\Schedule
    New Value=0
    Value Name=LastStart
    Root=2
    Data Type=3
  end
  item: Key
    Key=SOFTWARE\INTEL\LANDesk\VirusProtect6\CurrentVersion\PatternManager\Schedule
    New Value=720
    Value Name=MinofDay
    Root=2
    Data Type=3
  end
  item: Key
    Key=SOFTWARE\Symantec\LiveUpdate\Preferences\Proxy
    New Value=proxy.com
    Value Name=HttpServer
    Root=2
  end
  item: Key
    Key=SOFTWARE\Symantec\LiveUpdate\Preferences\Proxy
    New Value=proxy.com
    Value Name=Server
    Root=2
  end
  item: Key
    Key=SOFTWARE\Symantec\LiveUpdate\Preferences\Proxy
    New Value=8080
    Value Name=HttpPort
    Root=2
    Data Type=3
  end
  item: Key
    Key=SOFTWARE\Symantec\LiveUpdate\Preferences\Proxy
    New Value=8080
    Value Name=Port
    Root=2
    Data Type=3
  end
end
item: Delete File
  Pathname=%TEMP%\Nav751\*.*
  Flags=00001100
end
==========================================================
 

Pushing Outlook 2000

Can anyone tell me how to push Outlook 2000? I understand that you should use the Outlook CD to prevent Office 2000 from removing it during it's installation, but that is all that I know.

There are two ways of doing this:

  1. Use the Custom Installation Wizard in the Office 2000 Resource Kit

  2. Download the 'O2KSETUP.IPF' from the Microsoft web site and use the Custom Installation Wizard to create an unattended install of Office 2000

Microsoft have written the Deploying Windows Installer Setup Packages with Systems Management Server 2.0 whitepaper which should help.
 

Running the IE Repair Utility

I want to be able to run the built-in 'self-heal' facility of IE 5.x but my policies prohibit my users from accessing Control Panel. Is there a way to do this with SMS?

Contributed By: Cliff Hobbs [MVP SMS]
Yes - as detailed in the following article written by Rod Trent, Manager of myITforum.com:

http://www.myitforum.com/articles/12/view.asp?id=234

Unable to use Custom Icon for Setup Executable

I have not been able to use a custom Icon for the Setup Executable Icon.  The settings for this are in the 'Installation Properties' on the 'Settings' tab. When you use a custom icon for the Setup Executable you get an error telling you that the icon needs to be 32x32 pics and 16 bit color. I have tried every icon and value I know and always get the same error. This problem existed in past versions as well.

Is there a trick here I don't know like sleep function only works in 32 bit mode?

Contributed By: Rod Trent [MVP SMS]
No, it really has to be in 16 colors (not 16 bit).
 

Uninstalling one Program Installed with SMS Installer Uninstalls All of Them

Contributed By: Rod Trent [MVP SMS]
If you’re seeing this problem then we have the answer…  [Go to article]
 

© FAQShop.com 2003 - 2008

Goto the SMS Installer Home Page

Email the Author