Can I create installer that copies files from a UNC path on the network?

前端 未结 1 1438
后悔当初
后悔当初 2021-01-16 07:44

Is it possible to create the Inno Setup script to copy files from a UNC path on the network rather than statically adding them to the setup file?

If so, can it still

1条回答
  •  时光说笑
    2021-01-16 08:00

    Yes, specify the UNC path in the Source parameter of the [Files] section entry and use the external flag.

    [Files]
    Source: \\UNC\path\file.txt; DestDir: {app}; Flags: external
    

    To authenticate, you would have to call the WNetUseConnection or similar WinAPI.

    See How to execute "net use" command from Inno Setup installer on Windows 7?

    0 讨论(0)
提交回复
热议问题