Hi All,
I am working on an application, where the update needs to be turned off.
This is the registry i get , if I manually turn off the updates after the app is installed[HKEY_CURRENT_USER\Software\App Name\Program]

I tried to write a vbscript for it to turn off the update

const HKEY_CURRENT_USER = &H80000001
strComputer = "."
Set oReg=GetObject( _
"winmgmts:{impersonationLevel=impersonate}!\\" &_
strComputer & "\root\default:StdRegProv")
strKeyPath = "Software\App Name\Program"
strValueName = "UpdateInterval"
oReg.SetDWORDValue _

Since it is getting registered in HKCU, I think a script for an active setup will work.
Can anyone please guide me with this active setup.

Any Advice is appreciatable

0 Comments   [ + ] Show Comments


Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.


Can one application have 2 active setups, say for an example, you have an active setup in a MST, and the application is deployed. And now you need to turnoff the updates, which is in the HKCU, so can you write a script as above, will the same active setup work for this script also?

Please guide me
Thank You
Answered 10/19/2011 by: shamu99
Fifth Degree Brown Belt

Please log in to comment
The answer to your first post lies at :


The answer to your second question is that u can run the active setup for already exsisting package by creating a patch say MSP which updates the HKLM version part a higher value whic facilities a proper active setup function and hence will run the script

Answered 10/19/2011 by: mayur_mak
Senior Purple Belt

Please log in to comment
Answer this question or Comment on this question for clarity