我安裝一個應用程序在Windows 7機器(我的應用程序的目標是一個特定的設備),我試圖讓它在OS啓動時運行/登錄。安裝程序忽略WriteRegStr(嘗試應用程序添加到啓動運)
這是一個Silverlight OOB應用程序,我想這可能是一個問題,但我用記事本測試,它仍然無法正常工作。
我跟着例子here:
!include "MUI.nsh"
Name "Tech Drive Installer"
OutFile "techdrive_setup.exe"
InstallDir "$PROGRAMFILES\Tech Drive"
RequestExecutionLevel admin
ShowInstDetails show
!insertmacro MUI_LANGUAGE "English"
Section
SetOutPath "$INSTDIR"
SetOverwrite ifnewer
File "TechDrive.xap"
ExecWait '"$PROGRAMFILES\Microsoft Silverlight\sllauncher.exe" /install:"$INSTDIR\TechDrive.xap" /origin:"http://localhost/TechDrive.xap" /shortcut:desktop'
WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\Microsoft\Windows\CurrentVersion\Run\" "TechDrive" '"$PROGRAMFILES\Microsoft Silverlight\sllauncher.exe" 3388701632.localhost'
SectionEnd
爲什麼這是不是可以正常工作?
它是32位還是64位操作系統? – Seki