+ Post New Thread
Results 1 to 6 of 6
O/S Deployment Thread, WPKG keeps installing software in Technical; I am playing around with WPKG but am having some difficulty in getting it set up correctly. I set up ...
  1. #1


    Join Date
    Sep 2008
    Posts
    1,806
    Thank Post
    332
    Thanked 262 Times in 214 Posts
    Rep Power
    120

    WPKG keeps installing software

    I am playing around with WPKG but am having some difficulty in getting it set up correctly. I set up using the example "dia" software given and it installed fine. I than decided to try and use a different example and tried to test Malwarebytes. Now although it seems to install ok, everytime I reboot the computer it starts to install again. Also, although I've removed the dia software package it is still installed on the client. I've read the forums, but still don't understand how to uninstall a program. Can anyone explain it in simple terms please?

  2. #2
    morganw's Avatar
    Join Date
    Apr 2009
    Location
    Cambridge
    Posts
    816
    Thank Post
    46
    Thanked 132 Times in 126 Posts
    Rep Power
    40
    Can you post your package file?

  3. #3


    Join Date
    Sep 2008
    Posts
    1,806
    Thank Post
    332
    Thanked 262 Times in 214 Posts
    Rep Power
    120
    OK, I may have been having a bad day. I have tried a different package and it installs fine. I noticed that it veryifies that the software is installed but skips as soon as it finds it.

    I have one other thing that I would like to know if it's possible though. We have our start menu group similar programs together so that we have a folder for browsers containing IE, Firefox etc, but if I want to update the version we have it creates a new link on the start menu. Is there anyway you can change that or does it always create the start menu icon in the default location?

  4. #4
    morganw's Avatar
    Join Date
    Apr 2009
    Location
    Cambridge
    Posts
    816
    Thank Post
    46
    Thanked 132 Times in 126 Posts
    Rep Power
    40
    WPKG doesn't do anything specific to icons, that is all down to installer. You can normally change the installer behaviour with regard to icons (i.e. using the ALLUSERS property for MSI based installers), and then just use your own script or command as part of the packages xml definition to do whatever you need to do. I used to run the actual installer for the application first, then run robocopy to copy new icons into place. If you are using a redirected start menu that isn't on the local machine then the problem becomes harder.

  5. Thanks to morganw from:

    penfold (23rd October 2012)

  6. #5


    Join Date
    Sep 2008
    Posts
    1,806
    Thank Post
    332
    Thanked 262 Times in 214 Posts
    Rep Power
    120
    The start menu has been created as part of the image, but I wanted to see if I could update the software versions we had (or add more software) but keep the start menu structure the same. So for example if I wanted to add Opera as an alternative browser I want it showing under Start>Browsers>*All Browsers*.

    So if I want to copy the icon from Start Menu>Programs to Start Menu>Programs>Browsers> I need to run robocopy at the end of the installation to move the file to the appropriate folder? And the next question is, do need to format the syntax somehow for it to be used in WPKG?

  7. #6
    morganw's Avatar
    Join Date
    Apr 2009
    Location
    Cambridge
    Posts
    816
    Thank Post
    46
    Thanked 132 Times in 126 Posts
    Rep Power
    40
    I used to have a folder structure for the start menu, for each application I would deploy and then copy it over the top of the redirected start menu. Here is an example:

    Code:
    <?xml version="1.0" encoding="UTF-8"?>
    <packages>
    	<package id="audacity"
    		name="Audacity"
    		revision="1"
    		reboot="false"
    		priority="50">
    
    		<check type="uninstall" condition="exists" path="Audacity 1.2.6" />
    		<install cmd='\\SERVER\WPKG\bin\audacity\audacity-win-1.2.6.exe /SP- /VERYSILENT /NORESTART /MERGETASKS="!desktopicon"' timeout="300" />
    		<install cmd='%COMSPEC% /c xcopy "\\SERVER\WPKG\bin\audacity\lame_enc.dll" "%PROGRAMFILES%\Audacity\" /I /H /Y' timeout="60" />
    		<install cmd='robocopy \\SERVER\WPKG\bin\audacity\icons\ C:\StartMenu\ /E' timeout="60" />
    		<remove cmd='%COMSPEC% /c del "%PROGRAMFILES%\Audacity\lame_enc.dll" /F /Q' timeout="60" />
    		<remove cmd='%COMSPEC% /c del "C:\StartMenu\Programs\Music\Audacity.lnk" /F /Q' timeout="60" />
    		<remove cmd='%PROGRAMFILES%\Audacity\unins000.exe /VERYSILENT' timeout="300" />
    	</package>
    </packages>
    The only thing you have to watch out for with Robocopy is the amount of output it's generating, too much and it will break the package due to a bug in WPKG. So you can either redirect it to a file with /LOG: or redirect all output >NUL.

  8. Thanks to morganw from:

    penfold (24th October 2012)

SHARE:
+ Post New Thread

Similar Threads

  1. Replies: 1
    Last Post: 4th May 2010, 02:46 PM
  2. Installing Software With Different Privleges
    By plexer in forum How do you do....it?
    Replies: 0
    Last Post: 15th March 2007, 01:22 PM
  3. Display a message whilst installing software
    By richard in forum How do you do....it?
    Replies: 14
    Last Post: 14th December 2006, 01:40 PM
  4. gpo install software
    By browolf in forum Windows
    Replies: 11
    Last Post: 2nd December 2005, 11:08 AM
  5. ..Install software?
    By kingswood in forum How do you do....it?
    Replies: 21
    Last Post: 4th August 2005, 04:00 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •