Jairo
Posts: 15
Joined: Fri Jan 25, 2008 2:05 am

Permission in Windows 2003 for [%USERDOMAIN][USERNAME] bug?

Hi all,

I´m setting permissions for a installed folder for [%USERDOMAIN][USERNAME] in "Commom Application Data\mycompany\myapplication".

Everything works in Windows XP and Windows Vista, but in Windows 2003 (standalone, local domain) I´m receiving the following message from installer:

"An error occurred while applying security settings. DSW02/DSW02 is not a valid user or group. This could be a problem with the package, or a problem connecting to a domain controller on the network. Check your network connection and click Retry, or Cancel to end the install."

DSW02 is the local domain name, but I´m using Administrator user and DSW02 user doesn´t exist.

Anybody know what´s going wrong?

Regards,

Jairo Marques
Jairo
Posts: 15
Joined: Fri Jan 25, 2008 2:05 am

Re: Permission in Windows 2003 for [%USERDOMAIN][USERNAME] bug?

Hi,

now I know what i´m doing wrong. I thought that [USERNAME] was the name of the logged user in a domain, but it isn´t. Anybody know if there is a [USERDOMAINNAME] property?

Regards,

Jairo Marques
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Permission in Windows 2003 for [%USERDOMAIN][USERNAME] bug?

Hi Jairo,

Please note that the USERNAME property is resolved automatically to the name of the Windows owner. This information is retrieved from the HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\RegisteredOwner value.

If you need to use the name of the current user, you can use the LogonUser property.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Jairo
Posts: 15
Joined: Fri Jan 25, 2008 2:05 am

Re: Permission in Windows 2003 for [%USERDOMAIN][USERNAME] bug?

Hi Cosmin,

thank you very much.

Jairo

Return to “Common Problems”