2011-11-25 115 views

回答

1

使用/D(它必須是在命令行中最後一個記號,它必須是一個不帶引號的絕對路徑):如果你希望允許安裝到你需要把AllowRootDirInstall true卷的根目錄

MySetup.exe /S /D=C:\Program Files\Foo Bar\Baz 

在你的腳本中。

+0

thanks.this爲我工作。 –

1

/D交換機適用於無提示安裝。

使用InstallDir從您的腳本更改目錄。

+1

/D將覆蓋InstallDir和InstallDirRegKey,不僅僅用於靜默安裝... – Anders

1

我創建了卸載程序文件,但卸載程序無法清除文件。

ExeWait '"$INSTDIR\Farayand\FarayandLibrary\dokanctl.exe" /r a' $0 
RMDir /r $INSTDIR\Farayand\FarayandLibrary 
RMDir $INSTDIR\Farayand 
${if} ${RunningX64} 
    ${DisableX64FSRedirection} 
    Delete $SYSDIR\drivers\dokan.sys 
    ${EnableX64FSRedirection} 
${Else} 
     Delete $SYSDIR\drivers\dokan.sys 
${ElseIF} 

dokan.sys清理時卸載run.but farayandLibrary文件夾和文件夾中的內容不刪除。