DCourtel / Wsus_Package_Publisher

Publish third-party applications into your WSUS.
MIT License
215 stars 34 forks source link

CustomUpdate - filecopy - path/variable to additional files? #46

Open spiritbreaker22 opened 3 years ago

spiritbreaker22 commented 3 years ago

Hi,

i need to create a custom update with an msi package and addtional files. So i created a custom update with an MSI action and file copy task.

In a later step the test.txt file is added to the addional files and install rules was defined. But the Update works not like expected, the additional files were not copied.

Im not sure how to address the addtional files in "source path" within Custom Update Creator File Copy Action:

Sourcefile: %IdontKnowPathofCustomUpdateEngine.exe%\test.txt Target: c:\tmp

Is there a variable for this?

2021-01-13 11_18_37-WPP1 2021-01-13 11_18_37-WPP2

Thanks!

rufflabs commented 3 years ago

I am just now starting to use WPP and I have this same question. The wiki doesn't seem to have any info on this either.

I also need to copy an additional file to a specific location on disk during the update, and would much prefer it to be self contained in the update and not reference an external file share.

SilentHunter124 commented 2 months ago

Hey I simply want to do the same but without any MSI File :D Did you find a solution what path I need?

journeym commented 2 months ago

You can use batch or powershell to copy file from update folder to the specified destination. Use the resulting script as a starting point for update. You dont need an MSI for Custom Update

SilentHunter124 commented 2 months ago

Hmm maybe I do not get it, how does the powershell script know the update folder location? And where do I put this powershell script?

journeym commented 2 months ago

Fot reference to the installer directory in batch use %cd% for ex. image all files that are to be transferred to the client need to be put in the image

SilentHunter124 commented 2 months ago

Ah ok so the variable is %cd% :D and where do you place the install.cmd file? because the custom update requires a path to a script which is then also %cd%/install.cmd ????

journeym commented 2 months ago

If you use custom update gui to run script, then no, you dont need to provide a path Here is an example from my java custom installation image

SilentHunter124 commented 2 months ago

Wow that is easy, should be really added to wiki... many thanks saved my life! Did not test it yet but will do tomorrow !