naghicalin
Posts: 3
Joined: Thu Oct 29, 2009 3:15 pm

Build under System account

Hi,
We have a licensing problem when we build under System user account.
We have a Windows 2008 server with TeamCity build system (which runs as a service under System account), nant (will call AdvancedInstaller.com with inline parameters). The license was registered while I was using my personal account and of course I have created the AdvancedInstaller projects from my account. Then if the .msi is created using TeamCity which runs under System account, I get the message with Trial/Evaluation stuff when I try to install the .msi...
I noticed there is a license file somewhere under my AppData folder. Will it work if I copy the file somewhere (some kind of AppData folder for System account...)?
Thanks in advanced.
Calin.
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Build under System account

Hello Calin,

Advanced Installer is not designed to run under the System account. You will have to run it under another account in order for it to properly function.

Regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
naghicalin
Posts: 3
Joined: Thu Oct 29, 2009 3:15 pm

Re: Build under System account

Hi,
Thanks for information. However I want to ask something else :).
If we have a one user license, can I create project files with one account (on my development machine) and runt the builds with another account(build machine)?
Calin.
P.S. We could talk in Romanian but I don't know the rules of this forum and besides this information might be useful for other users too :).
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Build under System account

Hi,
If we have a one user license, can I create project files with one account (on my development machine) and runt the builds with another account(build machine)?
Yes, as long as no other developers are using the license.
We could talk in Romanian but I don't know the rules of this forum and besides this information might be useful for other users too
On the forum it's best to use English. You can also send us emails to support at advancedinstaller dot com.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
toddpatt
Posts: 111
Joined: Fri Jan 08, 2010 1:36 am

Re: Build under System account

G'day,

We have the same problem. Our automated builds are triggered by a build-system running inside of Tomcat, which invokes ant and then ant invokes the Advanced Installer command-line. Since Tomcat is running as the Windows SYSTEM user (which is the default and recommended behavior for running Tomcat as a Windows service), the installer packages generated by our ant tasks are "trial version".

We tried several work-arounds which all failed. Ultimately, the only solution was to run Tomcat as a different user (i.e. non-System user for whom AI could be registered). However, this solution then caused many permissions-related problems for our other build tasks (not related to Advanced Installer). As I'm sure you know, the Windows SYSTEM user has special permissions which are generally much higher than those of a normal user.

I understand that Advanced Installer has a licensing scheme that must be followed. However, it would really be nice if you could add the ability to grant/extend the license to the SYSTEM user. This seems like a reasonable request in the context of automated builds.

As always, thanks for your time and help.
-Todd
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Build under System account

Hi Todd,

This improvement is on our TODO list and it will be available in a future version.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
toddpatt
Posts: 111
Joined: Fri Jan 08, 2010 1:36 am

Re: Build under System account

Thanks for your reply, Cosmin. That's great - I'll look for this improvement in future releases.

-Todd
bmerkle
Posts: 1
Joined: Mon Nov 15, 2010 9:34 pm

Re: Build under System account

cosmin wrote:Hi Todd,

This improvement is on our TODO list and it will be available in a future version.

Regards,
Cosmin
Hi, when will this feature be available ?
I think it is a common and resonable setup to run the buildserver under a system account

thanks,
Bernhard
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Build under System account

Hi,

For the moment the only solution for running Advanced Installer under the SYSTEM account is to place the license file in the location mentioned below.

Just unzip the license into the "Caphyon\Advanced Installer" subfolder of the "Local Settings" directory located under the user profile folder.On older systems this folder
is:"C:\Documents and Settings\Default User\Local Settings\Application Data\Caphyon\Advanced Installer". On Windows Vista, the folder is "C:\Users\Default\AppData\Local\Caphyon\Advanced Installer".

Note that this folder may not exist so you will need to create it manually.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
janekk
Posts: 2
Joined: Tue Feb 12, 2013 2:40 pm

Re: Build under System account

Any Progress on this issue?

Tried putting the licence in the folder Bogdan mentioned. Sadly no success here.

Code: Select all

C:\Users\Default\AppData\Local\Caphyon\Advanced Installer
Googled a bit and found that there is another possible place, where the system account might look.

Code: Select all

C:\Windows\System32\config\systemprofile\AppData\Local\Caphyon\Advanced Installer
However this does not work either. :(

The only thing which works is a actual user, then running the service as this user. But I this isn't the way the server should be configured.
---
OS: Win 7
Build tool: Jenkins / Hudson running on a Tomcat.
The tomcat is running as an service with the "System user account".
AI-Version: 7.6.1
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Build under System account

Hello,

I'm not sure why this happens. However, starting with version 8.1 of Advanced Installer, the license file is saved in a per-machine location and there's no need to register Advanced Installer per-user. So, in order to achieve what you want you should use version 8.1 (or higher) of Advanced Installer. If your maintenance plan doesn't cover this version please send us an email to support at advancedinstaller dot com and we will extend your maintenance plan for free so you can use version 8.1 (which should avoid this issue).

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
janekk
Posts: 2
Joined: Tue Feb 12, 2013 2:40 pm

Re: Build under System account

THX you are awesome! 8-)

Return to “Common Problems”