Hello Walt,
Thanks for the quick response. The path is "
C:\Users\USER1\Appdata\Roaming\Microsoft\Start Menu\Programs\Startup" for win 7
and 2008 server. I must admit I have no clue as to how this is incorporated
into the WIX xml though as I've only used the built in path properties so far.
At the moment I have a component containing the shortcut without a Directory or
DirectoryRef parent, but specifying the absolute path for its folder and the
contained shortcut folder.
<Component Id="CMP_AddSpecialShortcut" Guid="GUID"
Directory="C:\Users\USER1\Appdata\Roaming\Microsoft\Start
Menu\Programs\Startup">
<Shortcut Id="MYShortcut" Name="MyApp"
Description="Launch MyApp"
Target="[ProgramDir]MYApp.exe" WorkingDirectory="ProgramDir"
Icon="icon.ico"
Directory="C:\Users\USER1\Appdata\Roaming\Microsoft\Start
Menu\Programs\Startup"/>
<RegistryValue Root="HKCU"
Key="Software\Microsoft\STFC"
Name="installed"
Type="integer"
Value="1"
KeyPath="yes"/>
</Component>
This results in a similar error for each path:-
Error 1 The Component/@Directory attribute's value,
'C:\Users\USER1\Appdata\Roaming\Microsoft\Start Menu\Programs\Startup', is not
a legal identifier. Identifiers may contain ASCII characters A-Z, a-z, digits,
underscores (_), or periods (.). Every identifier must begin with either a
letter or an underscore.
Cheers,
Paul
-----Original Message-----
From: Walt Dexter [mailto:[email protected]]
Sent: 20 February 2014 13:28
To: General discussion about the WiX toolset.
Cc: <[email protected]>
Subject: Re: [WiX-users] Adding Application Shortcut to Specific User's Startup
Folder.
You don't say what OS, but recently in POSReady 7 I achieved this by just
putting a shortcut into the specific directory for that user, which if I
remember right is under c:/userdata/username/Microsoft/windows/start menu/...
If you poke around you'll find it.
On XP and earlier, the start menu tree is off the user home directory.
I used Inno Setup at the time, but the hard part in WiX is probably specifying
the full path. I haven't tried a shortcut in WiX yet. Let me know if you need
help with the path issue.
There may of course be a better way, and this isn't suitable for a more general
use than you described.
On Feb 20, 2014, at 6:06 AM, <[email protected]> wrote:
> Hello,
>
> I have a kiosk type PC system, that on boot up, automatically logs on a
> special restricted user account with a preconfigured password. My application
> then launches automatically using a shortcut present in only that special
> users Startup folder. The installation scope is per machine as other users
> may need to run the application from time to time for diagnostic purposes.
> The application installation is always done using an admin account.
>
> In the past using VS2010:-
>
> 1. The solution MS "Setup Project" installed all of the common features
> successfully.
>
> 2. I utilized the MS "Installer Class" which through some c# code
> created an application shortcut in the special user's startup folder during
> installation and removed it during uninstallation.
>
> With the demise of the above VS2010 features in later VS versions I have just
> over the last two weeks looked at WIX as an alternative. So far the WIX
> project will successfully install & uninstall the common features
> successfully, that is DLL, EXE files and some simple all user application
> shortcuts on the desktop and start menu.
>
> After searching for ages, I cannot determine how to set a startup shortcut in
> just the special user account. From my searches this does not appear to
> possible just using the basic WIX.
>
> I would really appreciate some directional guidance. Maybe a "C# custom
> action project" should be used? Or a batch file?
>
> Cheers,
> Paul
>
>
> --
> Scanned by iCritical.
>
> ----------------------------------------------------------------------
> -------- Managing the Performance of Cloud-Based Applications Take
> advantage of what the Cloud has to offer - Avoid Common Pitfalls.
> Read the Whitepaper.
> http://pubads.g.doubleclick.net/gampad/clk?id=121054471&iu=/4140/ostg.
> clktrk _______________________________________________
> WiX-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/wix-users
------------------------------------------------------------------------------
Managing the Performance of Cloud-Based Applications Take advantage of what the
Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121054471&iu=/4140/ostg.clktrk
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users
--
Scanned by iCritical.
------------------------------------------------------------------------------
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121054471&iu=/4140/ostg.clktrk
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users