Home  |  Contact us  | Submit Questions |  Glossary |  Advanced Search   
Search the KnowledgeBase:
Category:
 
 
Knowledgebase Home >> Installation Assistance >> Install ADS | Contact
3/4/5: Forcing Prevail to use the Windows registry for ADS/Prevail settings
I did this...

(Userfiles) U:PrevailToolsPVsettingsReg.exe

This little script will delete your ADS.ini and Prevail.ini files. It'll setup your Windows registry to hold the settings instead.

After running, the settings will be held in HKEY_CURRENT_USERSoftwareADSSettings and HKEY_CURRENT_USERSoftwarePrevailSettings

It's important that you reboot and redefine your Prevail settings after running this program.

Why do this?  After running this program there will be no reliance on using the Windows folder for the two INI files.  This is particularly of use when operating Prevail (3/4 or 5) in a restricted user environment (for example, when nobody has write access to c:windows) - it might be useful under Windows Vista.  

As the settings will be held in the HKEY CURRENT USER registry hive then the settings will be unique for each user who logs in, and the settings will roam with their Windows profile.



Rob


$answer = MsgBox(4, "Prevail Reconfigurator", "This script will configure your PC to use your Windows Registry for Prevail settings - Run?")

; Check the user's answer to the prompt (see the help file for MsgBox return values)
; If "No" was clicked (7) then exit the script
If $answer = 7 Then
    MsgBox(0, "End", "OK.  Exiting")
    Exit
EndIf
; Check to see if Prevail is already open, if it is - warn the end user that it's about to be forcibly closed.
If ProcessExists("prevail.exe") Then MsgBox(0, "WARNING:", "Prevail is still running -Please close Prevail before continuing - Clicking beyond this point will close Prevail")

;Forcibly close prevail- twice times, just in case it's already open
ProcessClose("prevail.exe")
ProcessClose("prevail.exe")
    
;Wait five seconds for Prevail to close.
Sleep(5000)

RegWrite ("HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindows NTCurrentVersionIniFileMappingAds.ini","", "REG_SZ","@USR:SoftwareADSSettings")
RegWrite ("HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindows NTCurrentVersionIniFileMappingprevail.ini","", "REG_SZ","@USR:SoftwarePrevailSettings")
RegWrite("HKEY_CURRENT_USERSoftwarePrevailSettings")
RegWrite("HKEY_CURRENT_USERSoftwareADSSettings")

FileMove (@WindowsDir & "prevail.ini", @WindowsDir & "prevail.iniold",1)
FileMove (@WindowsDir & "ads.ini", @WindowsDir & "ads.iniold",1)

MsgBox (0,"All Done","Operation Complete - REBOOT and after rebooting redefine your Prevail Settings - Should problems continue please email support@prevail.net")
Would you like to...
Export Options
Book Mark Options
User Opinions
No users have voted.

How would you rate this answer?
Helpful
Not helpful
 
Visitor Comments
No visitor comments posted. Post a comment
Related Questions
No related questions were found.
Attachments
No attachments were found.
 
Copyright © Nextage Technologies All rights reserved