Support Forum: Get Support for Patch My PC Products and Services

Home Updater (Free Updater) => General Questions (Free Home Updater) => Topic started by: Justin Chalfant (Patch My PC) on August 20, 2011, 09:06:29 PM

Title: Patch My PC Home Updater: Command-Lines, Silent-Switches And More Info
Post by: Justin Chalfant (Patch My PC) on August 20, 2011, 09:06:29 PM
Please see: https://patchmypc.net/faq-free-updater (https://patchmypc.net/faq-free-updater) for the most up to date information.

The /auto switch - This switch will allow the current logged user to see the Patch My PC GUI. The update process will started automatically. If browsers are open Patch My PC will notify user in the log textbox browsers need to be closed before updates can continue.   

The /s switch - This switch will run Patch My PC in hidden in the background. If browsers are open it will recheck every ten seconds until browsers are closed then continue with the install.

Examples:

PatchMyPC.exe /s (Will run any needed updates automatically with no graphical interface).
PatchMyPC.exe /auto (Will run any needed updates automatically with a graphical interface).
Title: Re: Switches And More Info
Post by: Mark on December 24, 2011, 07:53:06 PM
So if PatchMyPC no longer uses the config.xml starting with 2.0.7, is there any way to turn off updating of certain programs listed under Common Updates, either through the GUI or otherwise?  I just donated to the cause and would really like this feature, along with the previously mentioned feature request to have offline updates possible.

Outstanding program.  You're doing a great job!
Title: Re: Switches And More Info
Post by: Justin Chalfant (Patch My PC) on December 25, 2011, 08:10:31 AM
I need to make it more obvious, but you can right click the software label and you will have the option to install/skip the update.

Justin
Title: Re: Switches And More Info
Post by: Lord Necron on December 28, 2011, 01:30:03 PM
Quote from: rkulik on September 16, 2011, 09:55:29 AM
Are there any switches or use of the XML file to install the optional software as well?

Quote from: Justin on September 16, 2011, 10:18:56 PM
Added in version 2.0.2 you can download it now and download the latest config.xml from this post for a sample of how to install certain optional software by default. Good Idea!

Justin

Quote from: Justin on August 20, 2011, 09:06:29 PM
Patch My PC 2.0.7 and above no longer use the config.xml for customizing how it's run
« Last Edit: December 23, 2011, 12:25:09 PM by Justin »

What happened?

Title: Re: Switches And More Info
Post by: Justin Chalfant (Patch My PC) on December 29, 2011, 09:54:15 AM
I'm adding these options into the program. Here is a screen shot of 2.0.7 Beta. There is going to be a options feature replacing the Windows Tools feature.

(http://patchmypc.net/images/207.jpg)


Quote from: Lord Necron on December 28, 2011, 01:30:03 PM
Quote from: rkulik on September 16, 2011, 09:55:29 AM
Are there any switches or use of the XML file to install the optional software as well?

Quote from: Justin on September 16, 2011, 10:18:56 PM
Added in version 2.0.2 you can download it now and download the latest config.xml from this post for a sample of how to install certain optional software by default. Good Idea!

Justin

Quote from: Justin on August 20, 2011, 09:06:29 PM
Patch My PC 2.0.7 and above no longer use the config.xml for customizing how it's run
« Last Edit: December 23, 2011, 12:25:09 PM by Justin »

What happened?
Title: Re: Switches And More Info
Post by: Lord Necron on January 02, 2012, 01:14:25 PM
Quote from: Justin on December 29, 2011, 09:54:15 AM
I'm adding these options into the program. <snip> There is going to be a options feature replacing the Windows Tools feature.

Very cool. Thank you!
Title: Re: Switches And More Info
Post by: naaitsab on April 21, 2012, 07:08:33 AM
Is it possible to create a switch that forces installation of all the common updates except the one marked as "skip" in the registry?

For example we have a clean install of Windows 7 64Bit;
User runs a small C# exe file (or .bat file) which writes the following to the registry:


RegKeyWrite = RegKeyWrite.CreateSubKey
("SOFTWARE\\Patch My PC");
RegKeyWrite.SetValue("PATH", "C:/PatchMyPC.exe");

RegKeyWrite = RegKeyWrite.CreateSubKey ("Options");
RegKeyWrite.SetValue("Language", "Dutch");
RegKeyWrite.SetValue("LogSaveLocation", @"C:\");
RegKeyWrite.SetValue("SkipAppleiTunes", "1");
RegKeyWrite.SetValue("SkipAppleQuicktime", "1");
RegKeyWrite.SetValue("SkipGoogleChrome", "1");
RegKeyWrite.SetValue("SkipMozillaFirefox", "1");
RegKeyWrite.SetValue("SkipOracleJREx64", "1");
RegKeyWrite.SetValue("SkipPiriformCCleaner", "1");
RegKeyWrite.SetValue("SkipSkype", "1");


So when PatchMyPc runs with the desired switch it will install:

-Adobe air
-Adobe reader
-Flash
-Java
-Shockwave
-Silverlight


But because it's a clean installation none of these programs where installed before PatchMyPc was run, so if User runs the program with the same registry settings as above and the /Auto switch nothing is installed and PatchMyPc say's it's finished.

Any idea's of fixes for this?
Title: Re: Switches And More Info
Post by: Justin Chalfant (Patch My PC) on April 27, 2012, 10:53:04 AM
Hey in version 2.1.1 and above there will be a switch too apply all common updates (Even if their not installed) if a common update is marked as skipped the update won't be installed though.

The command line argument will be /applyallcommon

Regards,

Justin


Quote from: naaitsab on April 21, 2012, 07:08:33 AM
Is it possible to create a switch that forces installation of all the common updates except the one marked as "skip" in the registry?

For example we have a clean install of Windows 7 64Bit;
User runs a small C# exe file (or .bat file) which writes the following to the registry:


RegKeyWrite = RegKeyWrite.CreateSubKey
("SOFTWARE\\Patch My PC");
RegKeyWrite.SetValue("PATH", "C:/PatchMyPC.exe");

RegKeyWrite = RegKeyWrite.CreateSubKey ("Options");
RegKeyWrite.SetValue("Language", "Dutch");
RegKeyWrite.SetValue("LogSaveLocation", @"C:\");
RegKeyWrite.SetValue("SkipAppleiTunes", "1");
RegKeyWrite.SetValue("SkipAppleQuicktime", "1");
RegKeyWrite.SetValue("SkipGoogleChrome", "1");
RegKeyWrite.SetValue("SkipMozillaFirefox", "1");
RegKeyWrite.SetValue("SkipOracleJREx64", "1");
RegKeyWrite.SetValue("SkipPiriformCCleaner", "1");
RegKeyWrite.SetValue("SkipSkype", "1");


So when PatchMyPc runs with the desired switch it will install:

-Adobe air
-Adobe reader
-Flash
-Java
-Shockwave
-Silverlight


But because it's a clean installation none of these programs where installed before PatchMyPc was run, so if User runs the program with the same registry settings as above and the /Auto switch nothing is installed and PatchMyPc say's it's finished.

Any idea's of fixes for this?
Title: Re: Switches And More Info
Post by: naaitsab on April 27, 2012, 11:16:44 AM
Quote from: Justin on April 27, 2012, 10:53:04 AM
Hey, I just wanted to let you know with version 2.1.1 there will be a switch too apply all common updates (Even if their not installed) if a common update is marked as skipped the update won't be installed though.

The command line argument will be /applyallcommon

Regards,

Justin

Thanks!
Much appreciated
Title: Re: Switches And More Info
Post by: hierisklaas on June 27, 2012, 06:59:04 AM
Hi, i have a very simple question;

let's say i have added patchmypc with parameters as a task in scheduled tasks in windows 7, added the parameter that it is updating hidden.
PMPC starts every monday, at 12:00. does it auto update itself when it starts? or do i need to click the .exe and open the gui for this?

Thank you for this great program! you serve our world with stuff we need!

Title: Re: Switches And More Info
Post by: Justin Chalfant (Patch My PC) on June 29, 2012, 09:14:14 PM
Auto update won't work very well when using the auto update switch. I plan on adding support for updating Patch My PC (If Needed) when running in silent mode in the next version
Title: Re: Switches And More Info
Post by: hierisklaas on June 30, 2012, 04:27:54 AM
you are pro human
Title: Re: Switches And More Info
Post by: Justin Chalfant (Patch My PC) on July 01, 2012, 05:02:36 PM
New version has been released that support updating Patch My PC (If Needed) automatically even when running silently. * You will have to check Auto update patch my pc in the options panel for this to apply.
Title: Re: Switches And More Info
Post by: MeZmeriZe on January 23, 2013, 10:48:05 PM
Sorry to pull up an old thread.. but it's about switches..

Is there a switch that tells it to install all common and all optional software unless it's in the ignore list?

I've setup a deployment that uses the registry keys and that works fine..  but it only updates the java/flash etc and we'd like it to install any of the optional software that it finds already installed. (google earth, winSCP irfanview that sort of thing.. basically anything it hasn't been told to ignore.

Is this possible?

regards

Frank
Title: Re: Switches And More Info
Post by: Justin Chalfant (Patch My PC) on January 24, 2013, 06:41:17 AM
It should update anything that's currently installed when using the silent switch including other updates.


Quote from: MeZmeriZe on January 23, 2013, 10:48:05 PM
Sorry to pull up an old thread.. but it's about switches..

Is there a switch that tells it to install all common and all optional software unless it's in the ignore list?

I've setup a deployment that uses the registry keys and that works fine..  but it only updates the java/flash etc and we'd like it to install any of the optional software that it finds already installed. (google earth, winSCP irfanview that sort of thing.. basically anything it hasn't been told to ignore.

Is this possible?

regards

Frank
Title: Re: Switches And More Info
Post by: MeZmeriZe on January 25, 2013, 03:25:28 AM
Weird..

I've got the following batch script:

@echo off
c:\windows\regedit -S C:\BIZ\patchmyPC.reg
C:\BIZ\PatchMyPC.exe /s

The reg inport is just the ignored apps..  that works fine... but running it with /s puts patchmypc into the task bar,  but doesn't seem to update anything so I swapped to a hidden window with /auto which works, but only for the common apps that I can see.   Clients are win7 64bit. Tested with all apps closed so it wasn't waiting for anything.  when you go into the taskbar icon and open it it still shows all the apps that need updating.

any idea what could be causing /s not to work in win7?
Title: Re: Switches And More Info
Post by: Justin Chalfant (Patch My PC) on January 25, 2013, 11:56:43 AM
I will look into it thanks
Title: Re: Switches And More Info
Post by: gerald.brann on April 25, 2016, 01:29:09 PM
It's now 4/25/2016 - and the exact same issue with /s.. it opens the program in the notification area (meaning minimized) yet does not automatically install patches as it should. It also doesn't automatically close the application once updates happen, as it should via a command line script.

Any ideas here?
Title: Re: Switches And More Info
Post by: GillesDelcourt on December 09, 2016, 08:50:00 AM
Quote from: Patch My PC Support on April 27, 2012, 10:53:04 AM
Hey in version 2.1.1 and above there will be a switch too apply all common updates (Even if their not installed) if a common update is marked as skipped the update won't be installed though.

The command line argument will be /applyallcommon

Hello

I cannot get this  /applyallcommon switch to work  :( Is it still supported ?

Regards
Title: Re: Switches And More Info
Post by: Omar (Patch My PC) on August 24, 2018, 03:38:50 AM
Quote from: GillesDelcourt on December 09, 2016, 08:50:00 AM
Quote from: Patch My PC Support on April 27, 2012, 10:53:04 AM
Hey in version 2.1.1 and above there will be a switch too apply all common updates (Even if their not installed) if a common update is marked as skipped the update won't be installed though.

The command line argument will be /applyallcommon

Hello

I cannot get this  /applyallcommon switch to work  :( Is it still supported ?

Regards

No, this was in the past when we had a "Common" group for the most common apps and "Others" group for the rest of the apps, It's not supported anymore.
Title: Re: Switches And More Info
Post by: Noa on September 20, 2018, 10:41:02 AM
Quote from: Justin Chalfant on August 20, 2011, 09:06:29 PM
Please see: https://patchmypc.net/faq-free-updater (https://patchmypc.net/faq-free-updater) for the most up to date information.

The /auto switch - This switch will allow the current logged user to see the Patch My PC GUI. The update process will started automatically. If browsers are open Patch My PC will notify user in the log textbox browsers need to be closed before updates can continue.   

The /s switch - This switch will run Patch My PC in hidden in the background. If browsers are open it will recheck every ten seconds until browsers are closed then continue with the install.

Examples:

PatchMyPC.exe /s (Will run any needed updates automatically with no graphical interface).
PatchMyPC.exe /auto (Will run any needed updates automatically with a graphical interface).


thank you very much your information was helpful for me may God you have a lot of information i checked your link which is mention above, awesome information
Title: Re: Switches And More Info
Post by: cattivik39 on September 27, 2018, 03:23:31 AM
Hy, i'm new member and sorry for my question  ::) but

It is possible from the command line in silent mode to exclude any programs from the update ?
Thank's for reply  ;)
Gianluca F.
from Italy
Title: Re: Switches And More Info
Post by: [email protected] on September 30, 2018, 07:02:11 PM
+1 to the question above.

I want to know if the PatchmyPC.ini file can exclude a software(for eg teamviewer ) from getting updated automatically. Ideally i dont want patch My PC to scan Teamviewer or update it. Rest of all softwares can be updated without issues. Is this possible?

I do not want to enable "Disable Auto updating of all apps" , since i want all the softwares to be updated automatically EXCEPT teamviewer. What to do?
Title: Re: Switches And More Info
Post by: Omar (Patch My PC) on October 01, 2018, 03:16:03 AM
Quote from: [email protected] on September 30, 2018, 07:02:11 PM
+1 to the question above.

I want to know if the PatchmyPC.ini file can exclude a software(for eg teamviewer ) from getting updated automatically. Ideally i dont want patch My PC to scan Teamviewer or update it. Rest of all softwares can be updated without issues. Is this possible?

I do not want to enable "Disable Auto updating of all apps" , since i want all the softwares to be updated automatically EXCEPT teamviewer. What to do?

You can right-click on any app and choose to disable scanning or disable auto update for this app.
Title: Re: Patch My PC Home Updater: Command-Lines, Silent-Switches And More Info
Post by: fullformlist on October 20, 2022, 04:53:41 AM
Thanks for providing this excellent platform. Nowadays, Laptops are preferred over desktops because of portability. There are so many good laptops available. But for gaming, only a few are capable to run heavy games. Therefore the best gaming laptop should be considered for heavy games


S.Gupta
Title: Re: Patch My PC Home Updater: Command-Lines, Silent-Switches And More Info
Post by: miek_g on January 26, 2023, 10:39:02 AM
is there a way to set the log file location in the ini file?
#edit#
I have the scheduled task running PMPC is located in ProgramFiles\PMPC\ and I would like the logfile to go to either c:\logs
Title: Re: Patch My PC Home Updater: Command-Lines, Silent-Switches And More Info
Post by: MerlinTheGreat on February 28, 2023, 07:13:14 AM
You can change the log location in the options part of PMPC.
Just click on the foldername under "Logging Options" and select a new folder location.
Title: Re: Patch My PC Home Updater: Command-Lines, Silent-Switches And More Info
Post by: ChuckM6421 on June 15, 2023, 10:06:58 AM
Quote from: Omar (Patch My PC) on October 01, 2018, 03:16:03 AM
Quote from: [email protected] on September 30, 2018, 07:02:11 PM+1 to the question above.

I want to know if the PatchmyPC.ini file can exclude a software(for eg teamviewer ) from getting updated automatically. Ideally i dont want patch My PC to scan Teamviewer or update it. Rest of all softwares can be updated without issues. Is this possible?

I do not want to enable "Disable Auto updating of all apps" , since i want all the softwares to be updated automatically EXCEPT teamviewer. What to do?

You can right-click on any app and choose to disable scanning or disable auto update for this app.

Thank you very much for putting this software out there. I also maintain a couple seniors' pcs and constantly chasing updates is very time-consuming. I'm recently retired from a 24 year technical career in IT and one thing I've taken from that time is that outdated software is one of the biggest threats to an enterprise, or to an individual's online presence.


Anyway, I also need to stop one of my apps from being updated. I run an app called "Handbrake" on Windows 7 and past my current version (not the latest) it's not supported. And every time PmPC tries to update it and throws an error. Yet I cannot right click on it either in the main listing, nor the Options panel. Most other apps listed I can see the menu you refer to. But it seems like the Handbrake entry is frozen, can't check/uncheck it's box either. FWIW, the text looks green (I'm slightly color impaired but I think it's green.
Any advice?
Title: Re: Patch My PC Home Updater: Command-Lines, Silent-Switches And More Info
Post by: MerlinTheGreat on June 15, 2023, 11:59:58 AM
@ChuckM6421
Normally it should be possible to rightclick and choose to not scan, autoupdate or silentinstall the app.
I don't know of an option to exclude an app via the ini file.
I don't even know where PatchMyPC keeps the settings for the rightclick options...

It might be handy though to have the option of excluding apps via the ini file.
Maybe by putting an exclamation mark in front of the app, just like the semicolon to not autoselect the app.
The exclamation mark is used in IT to NOT do/include some action, so it might be used NOT to install/scan for the app it is placed in front of.
That is a very easy thing to implement in PatchMyPC. Hint, hint, hint...  ;)
Title: Re: Patch My PC Home Updater: Command-Lines, Silent-Switches And More Info
Post by: MerlinTheGreat on June 15, 2023, 12:18:06 PM
@ChuckM6421

I found it!
In the registry there is this item:
HKEY_LOCAL_MACHINE\SOFTWARE\Patch My PC\Options

In here you can find the options to exclude apps.
To disable the update of Handbrake you shoudl put the following in there:
Value: DisableAutoCheck_Chk_HandBrake Type: REG_SZ Data: 1
You could also add the following:
Value: Skip_Chk_HandBrake Type: REG_SZ Data: 1
and even:
Value: Manual_Install_Chk_HandBrake Type: REG_SZ Data: 1
This way Handbrake will be completely omitted from installing/updating

The reg file would look like this if you want to import these settings in the registry:
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Patch My PC\Options]
"Skip_Chk_HandBrake"="1"
"DisableAutoCheck_Chk_HandBrake"="1"
"Manual_Install_Chk_HandBrake"="1"

Title: Re: Patch My PC Home Updater: Command-Lines, Silent-Switches And More Info
Post by: MerlinTheGreat on June 15, 2023, 12:20:51 PM
These findings indicate that PatchMyPC in fact isn't actually "portable" since it writes in the registry...  :o  ;D
Title: Re: Patch My PC Home Updater: Command-Lines, Silent-Switches And More Info
Post by: ChuckM6421 on June 15, 2023, 04:23:06 PM
And you're correct!
I hope my attachment screen shot is visible.
Thanks very much and great detective work.
(And yes, it would appear this negates the portability, but it works for me)
Title: Re: Patch My PC Home Updater: Command-Lines, Silent-Switches And More Info
Post by: ChuckM6421 on March 27, 2024, 02:36:40 PM
Sp4m, and reported.