當我們將Documents and Settings文件夾完全從C移動到D驅動器時,產品插件安裝不起作用,最終出現彈出窗口窗口分割(0):C和錯誤文件夾不存在?對於具有單個分區的系統,這是工作正常,但只適用於多個分區,這是行不通的移動文件夾結構的安裝腳本問題
這裏是安裝腳本中使用的vbscript代碼的位,我需要做任何修改?
Dim windowsFolder ' For finding shortcut location
Dim windowsFolderSplit ' For isolating the WINDOWS drive
windowsFolder = fso.GetSpecialFolder(WindowsFolder)
If DEBUG = "D1" Then
MsgBox "windowsFolder:" & windowsFolder
End If
windowsFolderSplit = Split(windowsFolder, "\", -1, 1)
If DEBUG = "D1" Then
MsgBox "windowsFolderSplit(0):" & windowsFolderSplit(0)
MsgBox "windowsFolderSplit(1):" & windowsFolderSplit(1)
End If
Set docAndSetFolder = fso.GetFolder(windowsFolderSplit(0) & "\Documents and Settings")
它是否硬編碼到'C'驅動器?
你是什麼意思與 「產品附加」 到底是什麼? – reporter 2012-07-06 11:28:50
@reporter是我的產品補丁。產品工作正常,但當我開始補丁安裝它扔這一個。該vbscript是補丁安裝的一部分,是否硬編碼到'C'驅動器? – vettori 2012-07-06 11:33:51
是的,「空間窗口文件夾」通常是指向硬盤上特定路徑的鏈接。 – reporter 2012-07-06 12:09:40