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_directory_path


I can't get it to work.

When I used cmd.exe /k ... so the window remained I ran:

whoami /user

That told me the account was 'nt authority\system',  SID 'S-1-5-18'


Scott


On Fri, Jan 24, 2014 at 5:55 PM, Jeremiahf <jeremi...@gmail.com> wrote:

> Are you using
>          InstallPrivileges="elevated"
>          InstallScope="perMachine"/>
> in <Package Id=
> ?
>
> I've done it this way...give it a try. I to am running on windows 7
>
>     <CustomAction Id="ScriptForRemove"
>               Directory="TARGETDIR"
>              ExeCommand="cmd.exe /c sc delete something"
>                  Return="check"
>                 Execute="deferred"
>             Impersonate="no" />
>
>
> On Fri, Jan 24, 2014 at 4:12 PM, Scott Palmer <swpal...@gmail.com> wrote:
>
> > Can someone show me code that can successfully do it?
> >
> > I tried:
> >
> > <CustomAction Id='Mklink' Directory="myDir"
> >                       ExeCommand='[SystemFolder]cmd.exe /K mklink /D
> mylink
> > "[$(var.linkDest)]"' Execute="deferred" Impersonate="no" />
> >
> > <InstallExecuteSequence>
> >             <Custom Action="Mklink"
> > Before="InstallFinalize">$needALinkForThisComp=3</Custom> <!-- runs at
> > install of that Compoent Id -->
> >
> > </InstallExecuteSequence>
> >
> > 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 (thanks Microsoft!):
> > "You do not have sufficient privilege to perform this operation."
> >
> >
> > Thanks,
> >
> > Scott
> >
> >
> ------------------------------------------------------------------------------
> > CenturyLink Cloud: The Leader in Enterprise Cloud Services.
> > Learn Why More Businesses Are Choosing CenturyLink Cloud For
> > Critical Workloads, Development Environments & Everything In Between.
> > Get a Quote or Start a Free Trial Today.
> >
> >
> http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
> > _______________________________________________
> > WiX-users mailing list
> > WiX-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wix-users
> >
>
>
>
> --
> "They may forget what you said but they will never forget how you made them
> feel." -- Anonymous
>
> ------------------------------------------------------------------------------
> CenturyLink Cloud: The Leader in Enterprise Cloud Services.
> Learn Why More Businesses Are Choosing CenturyLink Cloud For
> Critical Workloads, Development Environments & Everything In Between.
> Get a Quote or Start a Free Trial Today.
>
> http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today. 
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to