gfy*_*ans 4 registry nsis windows-7
我正在安装一个应用程序到Windows 7机器(我的应用程序是针对一个特定的设备),我试图让它在操作系统启动/登录时运行.
这是一个Silverlight OOB应用程序,我认为这可能是一个问题,但我用记事本测试它仍然无法正常工作.
我按照这里的例子:
!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
Run Code Online (Sandbox Code Playgroud)
为什么这不起作用?
| 归档时间: |
|
| 查看次数: |
2042 次 |
| 最近记录: |