Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

_Startup() - Create Startup entries in Registry Help

$
0
0

Hi,

 

How come there is a _StartupRegistry_Install and on the Return line a _StartupRegistry_Uninstall? Am I not understanding this correctly or is this a typo? I have also noticed that if $iRunOnce is set to 1 or 2 it creates the value in RunOnceEx

 

http://www.autoitscript.com/forum/topic/124508-startup-create-startup-entries-in-the-startup-folder-or-registry/

; #FUNCTION# ==================================================================================================================== ; Name ..........: _StartupRegistry_Install ; Description ...: Creates an entry in the 'All Users/Current Users' registry. ; Syntax ........: _StartupRegistry_Install([$sName = @ScriptName[, $sFilePath = @ScriptFullPath[, $sCommandline = ''[, ;                  $fAllUsers = False[, $iRunOnce = Default]]]]]) ; Parameters ....: $sName               - [optional] Name of the program. Default is @ScriptName. ;                  $sFilePath           - [optional] Location of the program executable. Default is @ScriptFullPath. ;                  $sCommandline        - [optional] Commandline arguments to be passed to the application. Default is ''. ;                  $fAllUsers           - [optional] Add to Current Users (False) or All Users (True) Default is False. ;                  $iRunOnce            - [optional] Always run at system startup (0), run only once before explorer is started (1) ;                                         or run only once after explorer is started (2). Default is 0. ; Return values .: Success - True ;                  Failure - False & sets @error to non-zero ; Author ........: guinness ; Example .......: Yes ; =============================================================================================================================== Func _StartupRegistry_Install($sName = @ScriptName, $sFilePath = @ScriptFullPath, $sCommandline = '', $fAllUsers = False, $iRunOnce = 2)     Return __StartupRegistry_Uninstall(True, $sName, $sFilePath, $sCommandline, $fAllUsers, $iRunOnce) EndFunc   ;==>_StartupRegistry_Install

Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>