Sign in to follow this  
Followers 0
Iuli

Problems With RegWrite function

2 posts in this topic

#1 ·  Posted (edited)

Hi. I'll be quick ! i have problems with these lines of code.No entries are added to startup an the confirmation message is not shown ... Why ?

If GUICtrlRead($TT)=1 Then
        RegWrite("HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run", "TrueTransparency", "REG_SZ", '"' & @ProgramFilesDir & '\CPanel\Visual\TrueTransparency\TrueTransparency.exe"')
    EndIf   
    If GUICtrlRead($ViOrb)=1 Then
        RegWrite("HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run", "ViOrb", "REG_SZ", '"' & @ProgramFilesDir & '\CPanel\Visual\ViOrb\ViOrbv2.exe"')
    EndIf   
    If GUICtrlRead($ViStart)=1 Then
        RegWrite("HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run", "ViStart", "REG_SZ", '"' & @ProgramFilesDir & '\CPanel\Visual\ViStart\ViStart.exe"')
        Run(@ProgramFilesDir & '\CPanel\Visual\ViStart\installme.bat')
    EndIf   
    If GUICtrlRead($WinFlip)=1 Then
        RegWrite("HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run", "WinFlip", "REG_SZ", '"' & @ProgramFilesDir & '\CPanel\Visual\WinFlip\WinFlip.exe"')
    EndIf   
    If GUICtrlRead($LClock)=1 Then
        RegWrite("HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run", "LClock", "REG_SZ", '"' & @ProgramFilesDir & '\CPanel\Visual\LClock\LClock.exe"')
    EndIf   
    If GUICtrlRead($Sidebar)=1 Then
        Run(@ProgramFilesDir & '\CPanel\Visual\Sidebar\Sidebar.exe /S /NCRC/')
    EndIf   
    If GUICtrlRead($DeskSpace)=1 Then
        RegWrite("HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run", "DeskSpace", "REG_SZ", '"' & @ProgramFilesDir & '\CPanel\Other\DeskSpace\deskspace.exe"')
    EndIf   
    If GUICtrlRead($GlassToast)=1 Then
        RegWrite("HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run", "DeskSpace", "REG_SZ", '"' & @ProgramFilesDir & '\CPanel\Other\GlassToast\GlassToast.exe"')
    EndIf   
    If GUICtrlRead($QT)=1 Then
        Run(@ProgramFilesDir & '\CPanel\Other\QTAdressBar\QTAddressBar.exe /q')
        Run(@ProgramFilesDir & '\CPanel\Other\QTTabBar\QTTabBar.exe /q')
    EndIf   
    If @error=1 Then
        MsgBox(0,"Done !","All entries were added to startup")
    EndIf
Edited by Iuli

[size="2"]SFXMaker[/size] - The most complete switchless installer creator software[indent][/indent]

Share this post


Link to post
Share on other sites



1. When you use GUICtrlRead, what is the output? put a msgbox on it and see what the output is.

2. RegWrite("HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run", "TrueTransparency", "REG_SZ", '"' & @ProgramFilesDir & '\CPanel\Visual\TrueTransparency\TrueTransparency.exe"')

should be

RegWrite("HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run", "TrueTransparency", "REG_SZ", @ProgramFilesDir & '\CPanel\Visual\TrueTransparency\TrueTransparency.exe')

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0