我安装一个应用程序在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