Active Set up
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
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
Answers (2)
Please log in to answer
Posted by:
shamu99
13 years ago
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
Please guide me
Thank You
Posted by:
mayur_mak
13 years ago
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
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
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.