Jump to content

Installing support files in Vista


Recommended Posts

I'm trying to make some new applications Vista compatible. I'm no expert on Vista, but one thing I'm doing is putting configuration and data files in different places than I used to. Apparently you can't write to files in C:\Program Files\My App, so I'm using C:\Documents and Settings\All Users\Application Data\My App\Program (or its Vista equivalent) for config files and C:\Documents and Settings\All Users\Application Data\My App\Data for data files.

So for one program, I want to have an additional config-type file in the new config folder, but with the Installation script (LV 8.2.1), I can't find a way to do that. When you build an executable, you have a lot of flexibility for determining the destination for each item, but with the Installer, you can only add destination folders that are sub-folders of the paths that are already known to the installer script. At least from what I can tell.

Does anyone know of a work-around so that I could include additional support files in the installer and have them go to a particular location? The best I can think of is to have the program copy the files to the desired location the first time it is run, probably from its own installation location, which the installer can access.

Thanks for any ideas,

DaveT

Link to comment

QUOTE (dthomson @ Apr 1 2008, 06:32 AM)

I think your at a loss here. I believe Vista is supported from 8.5 and up.

In 8.5 you have the following options:

http://lavag.org/old_files/monthly_04_2008/post-2399-1207034004.png' target="_blank">post-2399-1207034004.png?width=400

Where the [CommonAppDataFolder]\yourprogram\yourfiles is what you need. Could you show what is available in 8.2?

I couldn't locate a help screen for the 8.2 installer.

Ton

Link to comment

QUOTE (Norm Kirchner @ Apr 1 2008, 12:48 PM)

I attended a few sessions @ NI week regarding vista and where to put your files.

You DEFINITELY should find them on NI's site, and from the information that I can recall, it will give you exactly what you're looking for.

Yes, there were some good presentations and discussions there.

FWIW, I've taken a brute-force approach and just created my own APPPATH: viz, c:\companyname\... with subs under it including ..\common files where I post config info and such. It ain't "standard practice" but it definitely works and gives me the exact same location whether in Vista or XP.

Link to comment

QUOTE (tcplomp @ Apr 1 2008, 01:18 AM)

I think your at a loss here. I believe Vista is supported from 8.5 and up.

In 8.5 you have the following options:

http://lavag.org/old_files/monthly_04_2008/post-2399-1207034004.png' target="_blank">post-2399-1207034004.png?width=400

Where the [CommonAppDataFolder]\yourprogram\yourfiles is what you need. Could you show what is available in 8.2?

I couldn't locate a help screen for the 8.2 installer.

Ton

Ton,

Thanks for pointing that out. You are quite right - 8.5 handles the issue directly whereas 8.2 does not. I'll work on getting the customer to upgrade.

Dave

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.