Installer not copying file from network path... - Advanced Installer Community
Wompipomp
Posts: 6
Joined: Thu Jul 18, 2013 8:02 am

Installer not copying file from network path...

with GPO Rollout.

Hi all,

we have an msi silent installer and during installation we copy a external license file to a local directory. The license file has to be in the same directory like the installer.
We have managed to get this working, if started manually from a local folder or from a network folder e.g. \\server\rolloutdir with the tutorial from here http://www.advancedinstaller.com/user-g ... -file.html
But now we have problems with the rollout through GPO.
We created a verbose log for the installation but the license file never appears in the log.

Here is a log from an installation from a network folder which works:

Code: Select all

MSI (s) (B4:A4) [08:58:55:774]: Executing op: ActionStart(Name=MoveFiles,Description=Moving files,Template=File: [1],  Directory: [9],  Size: [6])
MSI (s) (B4:A4) [08:58:55:774]: Executing op: ProgressTotal(Total=400,Type=0,ByteEquivalent=1)
MSI (s) (B4:A4) [08:58:55:774]: Executing op: SetSourceFolder(Folder=\\10.10.xx.xx\Rollout\)
MSI (s) (B4:A4) [08:58:55:774]: Executing op: SetTargetFolder(Folder=C:\ProgramData\company\license\)
MSI (s) (B4:A4) [08:58:55:774]: Executing op: FileCopy(SourceName=license.license,,DestName=license.license,Attributes=32,FileSize=400,PerTick=65536,IsCompressed=0,VerifyMedia=0,,,,,,,,InstallMode=262144,,,,,,,)
MSI (s) (B4:A4) [08:58:55:774]: File: C:\ProgramData\company\license\license.license;	To be installed;	Won't patch;	No existing file
MSI (s) (B4:A4) [08:58:55:790]: Source for file 'license.license' is uncompressed, at '\\10.10.xx.xx\Rollout\'.
The log from the GPO rollout looks almost the same but does not contain the copy operation.

Did I miss something? Is it possible to copy an external file from the SOURCEDIR to a local directory with GPO rollout?

Thank you
Mark
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Installer not copying file from network path...

Hi Mark and welcome to Advanced Installer forums.

Sorry for the delayed reply. I'm not sure why you encounter this behavior.

Can you please tell us which method do you use when install your software through GPO ("Assign software" method of "Publish software" method)? Also, do you install your product per-user or per-machine?

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Wompipomp
Posts: 6
Joined: Thu Jul 18, 2013 8:02 am

Re: Installer not copying file from network path...

Hi,

thank you for your reply.

We use "assign software" per-machine

Best regards,
Mark
Wompipomp
Posts: 6
Joined: Thu Jul 18, 2013 8:02 am

Re: Installer not copying file from network path...

Uupdate:

I also tried with "publish software" per-user and installed the software with a logged on user but the same.
The license file doesn't get mentioned in the log file and isn't copied to the given location.

It looks like the copy action doesn't get triggered during the installation through GPOs. :|

Best regards,
Mark
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Installer not copying file from network path...

Hi Mark,

I tested your scenario and, indeed, I reproduced the behavior. Although, the "File copy/move" operation is a Windows Installer feature and unfortunately it does not support copying a file from a network path.

Can you please tell us why do you want to copy the file using the "File copy/move" operation and do not include it in the MSI package, so we can try to find a workaround?

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Wompipomp
Posts: 6
Joined: Thu Jul 18, 2013 8:02 am

Re: Installer not copying file from network path...

Thank you for your answer.

We have a single installation package which can be installed without any license file. If the program starts and does not find a license file at a specific path <licensePath> on the local disk it starts in trial mode. You can then enter in the program a license code. After verifying the code the program saves the license to e.g. <licensePath>\license.license
From this location the license gets loaded everytime the program starts.
So you can also activate the program if you just copy a valid license into the path.

Ususally in companies the administrator installs new software for users through software deployment tools or GPOs. If the program then will be installed(without license), all the users would get a trial version. So we wanted to give the possibility to also copy a license during rollout from the same directory where the installer lies. So the software is activated for the users immediately. I think software deployment tools can handle the copy action but unfotunately the GPO rollout does not.
We also wanted to seperate the license from the installer for maintenance and update issues.

For GPO in the past we had an approach where we copied the license file at startup of the program but this was tedious and error-prone and we wanted to consolidate the process.

Thank you and
Best regards
Mark
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Installer not copying file from network path...

Hi Mark,

I understand your scenario and, as a workaround, I would suggest you to try the "How to copy new files to multiple computers using Group policy (GPO)" article and see if this works for you.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Wompipomp
Posts: 6
Joined: Thu Jul 18, 2013 8:02 am

Re: Installer not copying file from network path...

This would be a possible workaround :)

As an alternative I will also try a custom action where I try to copy the license with C#. Perhaps this will be executed.
I will give you an update if it is working.

Thank you
and
Best regards
Mark

Return to “Common Problems”