Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Distributing a package

Status
Not open for further replies.
Dec 19, 2001
125
US
I wrote a very simple program using sms installer. It basically checks for an excel file and deletes it. It then writes a new file to the users start up directory. Problem is it will not install the new file when I advertise the file to a collection but it will do it if they just manually run the exe. Doesn't really nake sense to me. It does delete the initial excel file though. Not really important as I only created this so I could start using it more. Any idea why this wouldn't work when advertised but does work when you manually run the same exe file that is advertised.
item: Get Environment Variable
Variable=SYS32
Environment=SYS32
end
item: Install File
Source=\\*****\******\Apps\SMSdp\prg32a.dll
Destination=%SYS32%\prg32a.dll
Description English=Installing Progress Bar
Flags=0000000000000010
end
item: Search for File
Variable=OPENORDERS
Pathname List=Open Orders.xls
Description English=Checking for Previous versions of Open Orders
end
item: Delete File
Pathname=%OPENORDERS%
end
item: Get Environment Variable
Variable=USERPROFILE
Environment=USERPROFILE
end
item: Delete File
Pathname=%USERPROFILE%\Start Menu\Programs\Startup\Open Orders.xls
end
item: Install File
Source=\\******\*******\Apps\SMSdp\Open Orders\Operations Master.xls
Destination=%USERPROFILE%\Start Menu\Programs\Startup\OPerations Master.xls
Description English=Damion is now Copying Operations Master to Startup.
Flags=0000000000000010
end
item: Delete File
Pathname=%SYS32%\prg32a.dll
end
 
My first thought is to check how you set up your package and advertisement in SMS, as well as status messages.

Did the client(s) receive the advertisement? Did they run it? Any errors? Is admin rights an issue? Did the distribution points get updated properly?
 
I did it as a mandatory assignment. It ran it just didn't copy the new file but it deleted the old one like it was supposed to. The package is running.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top