Hi dkijc,
I think you can do this, but a little unclear about the storing of icons
somewhere else? Are you actually installing a program also or just icons?

For storing the icons part you have a question in the installer I assume and
it asks to download latest icons or choose a directory?  If user answers
yes, then go to web and download icons to a folder.  The question is wouldnt
you want to do this after they define the INSTALLDIR in the install?  Then
you can use this dialog set and modify it:(WixUI_InstallDir does not allow
the user to choose what features to install, but it adds a dialog to let the
user choose a directory where the product will be installed.)

Therefore you can download the icons right to the install directory and
reference them there.  If this all sounds ok, then if you already have the
INSTALLDIR Variable assuming it is set up as the last node directory and
will look something like this in your .wxs  <Directory Id="INSTALLDIR"
Name="YourProgramName">.  Then you can reference it as a shortcut for
example as such:
<Shortcut Id="ApplicationStartMenuShortcut" Name="YourProgramNam"
Description="YourProgramNam" Target="[INSTALLDIR]YourProgramName.exe"
WorkingDirectory="INSTALLDIR">.  Or using it for other things, etc.

Since I am not quite sure about what you want to accomplish it is hard to
say, but I think this is sort of what you want.




Med vennlig hilsen /Regards
Brian




2009/4/23 dkijc <wwjdat2...@yahoo.com>

>
> Hi Pally,
>
> Thank you so much for your response! That gives me hope haha.
> I was actually reading the blog by Neil and had a question.
> I understand I can get the directory to be set but that's an installation
> directory.
> Can I create a custom directory OR can I actually use the INSTALLDIR (or
> whatever it is called)
> and when the installation is run can I trick the installer so instead of
> using the directory for installation folder actually snatch that directory
> to be stored in a variable within our code so our application knows where
> to
> look for the thumbnails?
>
> We can fetched the thumbnails over the web just fine but now our
> application
> is deployed in the same machine where we fetch the thumbnails so instead of
> going through a loop with http request we can easily look for thumbnails in
> the local machine. The reason for asking the path for the folder is because
> thumbnails are not always stored in the same folder, as that is a
> preference
> that a user can set.
>
> The problem I was having was when I created a custom dialog (using
> orca)that
> asks whether the use wants our application to fetch the thumbnail over the
> web or just from their local machine. Opening a browse dialog works fine
> but
> every time I chose a folder and press 'ok' I'd get '2707' (target not
> specified). And wasn't sure exactly what was causing the problem. I'm
> assuming it probably has to do with custom action and was wondering if WiX
> had a better way of going about it.
>
> So my question  still remains, is it possible to create a custom ID or
> variable to store the directory (which is not meant for installation but
> only purpose is to pass down the directory path into our code).
>
> I really hope that made sense... haha
>
> thanks, again!
>
>
> 1. The web stuff I'm not sure about. It's likely possible using custom
> actions as with most things. Someone else may have tried something
> similar but I don't think pulling arbitrary files off a web server is
> supported by default in the Windows Installer.
>
> 2. Very possible using standard Windows Installer UI controls. Have a
> look at the InstallDirDlg.wxs in the WiX 3.0 sources which does pretty
> much what you're trying to here except you'd need to hook it into the
> radio buttons first. You can even use the BrowseDlg in WiXUI without
> modification for your browse button. Neil Sleightholm's blog on
> customizing the WiXUI at
> http://neilsleightholm.blogspot.com/2008/08/customised-uis-for-wix.html
> should help point you in the right direction.
>
> Personally I'd tackle it as 2 separate issues and get the second part
> working as you'd like it to first, as the web stuff looks like it could
> take a lot of time to get working right but that's me and I could be
> wrong.
>
> Good luck
>
> Palbinder Sandher
> Software Deployment & IT Administrator
> T: +44 (0) 141 945 8500
> F: +44 (0) 141 945 8501
>
> http://www.iesve.com
> **Design, Simulate + Innovate with the <Virtual Environment>**
> Integrated Environmental Solutions Limited. Registered in Scotland No.
> SC151456
> Registered Office - Helix Building, West Of Scotland Science Park,
> Glasgow G20 0SP
> Email Disclaimer
>
>
> --
> View this message in context:
> http://n2.nabble.com/Reference-custom-directory-tp2670501p2685638.html
> Sent from the wix-users mailing list archive at Nabble.com.
>
>
>
> ------------------------------------------------------------------------------
> Crystal Reports - New Free Runtime and 30 Day Trial
> Check out the new simplified licensign option that enables unlimited
> royalty-free distribution of the report engine for externally facing
> server and web deployment.
> http://p.sf.net/sfu/businessobjects
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
------------------------------------------------------------------------------
Crystal Reports &#45; New Free Runtime and 30 Day Trial
Check out the new simplified licensign option that enables unlimited
royalty&#45;free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to