Re: [WiX-users] Making a symbolic link in an installer

2014-01-28 Thread Blair Murri
Per machine installation with windows installer initiated UAC prompt accepted (so the action was running as SYSTEM). I'll ask how much I can share. Scott Palmer wrote: Without running msiexec as an Administrator? If you have any code you can share I would appreciate it. Thanks, Scott On T

Re: [WiX-users] Making a symbolic link in an installer

2014-01-28 Thread Scott Palmer
Without running msiexec as an Administrator? If you have any code you can share I would appreciate it. Thanks, Scott On Tue, Jan 28, 2014 at 3:39 AM, Blair Murri wrote: > I’ve done it from a deferred DLL CA using the CreateSymbolicLink() API > before. > > > Blair > > > From: Scott Palmer > S

Re: [WiX-users] Making a symbolic link in an installer

2014-01-28 Thread Blair Murri
I’ve done it from a deferred DLL CA using the CreateSymbolicLink() API before. Blair From: Scott Palmer Sent: ‎Saturday‎, ‎January‎ ‎25‎, ‎2014 ‎5‎:‎32‎ ‎PM To: General discussion for Windows Installer XML toolset. "runas" seems to be useless for installer purposes. For one: I can'

Re: [WiX-users] Making a symbolic link in an installer

2014-01-25 Thread Scott Palmer
"runas" seems to be useless for installer purposes. For one: I can't have a console window pop up where a user is forced to enter their password. Second: It may run as a particular user, but not with *all* of their privileges, i.e. not as an Administrator. I'll make it an open challenge.. I've s

Re: [WiX-users] Making a symbolic link in an installer

2014-01-25 Thread Phil Wilson
On the privilege issue, something that might be relevant: the msiexec process doesn't have every available privilege, by which I mean they are really not there, as distinct from privileges that may be there but are disabled. Somewhere in the docs there is a list of the msiexec process rights, and i

Re: [WiX-users] Making a symbolic link in an installer

2014-01-24 Thread Scott Palmer
I don't think there is an extra quote. Are you sure you aren't seeing the quote closing the XML attribute value? The command line needs quotes as I'm linking to something in Program Files. While the cmd.exe window was still open I tried to make a simpler link and got the same message about pr

Re: [WiX-users] Making a symbolic link in an installer

2014-01-24 Thread Jeremiahf
Interesting... does it not work with removing the quotes from "[$(var.linkDest)]"' ? btw... I copied your line and there is an extra ' after "[$(var.linkDest)]". I pasted it in notepad and saw it more clear. Check this out. http://www.windows7home.net/how-to-create-symbolic-link-in-windows-7/ us

Re: [WiX-users] Making a symbolic link in an installer

2014-01-24 Thread Scott Palmer
Yes. As far as I can tell my Custom Action is running elevated, but even at that level there is no privilege to create a symlink. I can't imagine why.. but that seems to be the case. Try it yourself... change your command to execute something like cmd.exe /c mklink /D some_link_name some_direc

Re: [WiX-users] Making a symbolic link in an installer

2014-01-24 Thread Jeremiahf
Are you using InstallPrivileges="elevated" InstallScope="perMachine"/> in On Fri, Jan 24, 2014 at 4:12 PM, Scott Palmer wrote: > Can someone show me code that can successfully do it? > > I tried: > >ExeCommand='[SystemFolder]cmd.exe /K mklink /D mylink

[WiX-users] Making a symbolic link in an installer

2014-01-24 Thread Scott Palmer
Can someone show me code that can successfully do it? I tried: $needALinkForThisComp=3 I'm running on Windows 7 The cmd window that pops up (titled: "Administrator: C:\Windows\SysWOW64\cmd.exe") indicates that the System user doesn't have permission to make a symbolic link (th