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]
"UpdateInterval"="0"

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 _
HKEY_CURRENT_USER,strKeyPath,strValueName,0


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

Thanks
0 Comments   [ + ] Show Comments

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.

Answers

0
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
-1
The answer to your first post lies at :

http://mayur-bantsblog.blogspot.com/2011/10/one-has-to-repackage-applications-that.html

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

regards,
Mayur
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