2016-07-06 36 views
0

有什麼方法Components基於段的自定義磁盤跨越?Inno Setup中的自定義磁盤跨越

例如:

[Components] 
Name: "c1"; Description: "Component 1" 
Name: "sc2"; Description: "Special Component 2" 
Name: "redist"; Description: "Redistributables" 

[Files] 
Source: component.exe; DestDir: "{app}"; Components: c1 
Source: "specialfolder\*"; DestDir: "{app}"; Components: sc2 
Source: redist.msi; DestDir: "{app}"; Components: redist 

,我想編譯後看到這些文件:setup.exe, c1.bin, special.bin, redist.bin

感謝。

回答

1

不,這是不可能的。

如果您的目的是讓用戶只獲取他/她需要的作品,則可以使用extern標誌和{src}源目錄代替。雖然這不是真正的磁盤跨越。但它可以讓用戶只需要安裝沿着setup.exe安裝的文件。如果您確實需要將這些文件存儲在不同的磁盤上,則可以在Pascal腳本中實現額外磁盤的提示和實際安裝。

+0

你確定嗎?我的意思是沒有不敬,但我看到了一個基於Inno的安裝程序,就像我的例子。也許它需要一個外部DLL庫。 –

+0

我很確定。什麼是一些程序?告訴我們一些例子。 –

+0

我發現了幾個鏈接,但他們是洪流網站llnks。我不確定是否允許共享一個torrent站點鏈接。這些例子屬於綽號爲FitGirl的人的遊戲重新包裝。 實例: [鏈接](https://kat.cr/deadlight-director-s-cut-multi5-fitgirl-repack-selective-download-from-2-1-gb-t12814808.html) [鏈接](https://kat.cr/lego-star-wars-the-force-awakens-2-dlc-multi10-fitgirl-repack-selective-download-from-6-3-gb-t12874097.html) –