473,405 Members | 2,373 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

Installing data files with application?

I include some sample binary data files (produced by my software) with my
application installation for the user to do what they want with. I put the
files in the Users Personal Data Folder/(myappsname) with VS 2005 installer -
File Types screen. All is well until the user changes the name of the file (I
want the user to be able to do this, move, or delete the files). When the
user changes the name, and then starts my application, the system tries to
re-install the file (and looks for the myaps.msi) instead of just starting my
application up. Not what I want. I dont care what the user does with the file.

I cant figure where this behavior is defined. Is there a "dont try to
re-install this file if deleted" setting in the installer part of VS 2005?

I have set the files and the folder as Vital = false and Tranistive = True
(or false). What am I missing or doing wrong?

Thanks,

Tom

Jan 2 '08 #1
5 1659
Tom,

Not that I know this behaviour, however if you send a message about folders,
than please tell as well on what OS.

By instance Vista has a (let me say) very new folder behaviour

Cor
"Tracks" <Tr****@discussions.microsoft.comschreef in bericht
news:58**********************************@microsof t.com...
>I include some sample binary data files (produced by my software) with my
application installation for the user to do what they want with. I put the
files in the Users Personal Data Folder/(myappsname) with VS 2005
installer -
File Types screen. All is well until the user changes the name of the file
(I
want the user to be able to do this, move, or delete the files). When the
user changes the name, and then starts my application, the system tries to
re-install the file (and looks for the myaps.msi) instead of just starting
my
application up. Not what I want. I dont care what the user does with the
file.

I cant figure where this behavior is defined. Is there a "dont try to
re-install this file if deleted" setting in the installer part of VS 2005?

I have set the files and the folder as Vital = false and Tranistive = True
(or false). What am I missing or doing wrong?

Thanks,

Tom
Jan 3 '08 #2
CMoya's approach is kind of what we do. We install zip files to a "support"
folder under the main app dir. On first run by a user, we unzip the files
using CSharpZip lib to the user's folder.

Occasionally where we have huge data files (1GB+) we write a custom action
to install the data to a common for all users.

VS Deployment projects care about the zip files, but not the contents after
they are extracted, even when within a custom action.

I hope this helps.

"Tracks" wrote:
I include some sample binary data files (produced by my software) with my
application installation for the user to do what they want with. I put the
files in the Users Personal Data Folder/(myappsname) with VS 2005 installer -
File Types screen. All is well until the user changes the name of the file (I
want the user to be able to do this, move, or delete the files). When the
user changes the name, and then starts my application, the system tries to
re-install the file (and looks for the myaps.msi) instead of just starting my
application up. Not what I want. I dont care what the user does with the file.

I cant figure where this behavior is defined. Is there a "dont try to
re-install this file if deleted" setting in the installer part of VS 2005?

I have set the files and the folder as Vital = false and Tranistive = True
(or false). What am I missing or doing wrong?

Thanks,

Tom
Jan 3 '08 #3
Thanks,

It does it in Vista Home Premium and XP something and others. So I assume
all that the .net 2 framework runs on.

Yeah I am up on the Vista issues some and how the folders have changed. It
is not that cause I am having the same thing on XP? More in next response.

"Cor Ligthert[MVP]" wrote:
Tom,

Not that I know this behaviour, however if you send a message about folders,
than please tell as well on what OS.

By instance Vista has a (let me say) very new folder behaviour

Cor
"Tracks" <Tr****@discussions.microsoft.comschreef in bericht
news:58**********************************@microsof t.com...
I include some sample binary data files (produced by my software) with my
application installation for the user to do what they want with. I put the
files in the Users Personal Data Folder/(myappsname) with VS 2005
installer -
File Types screen. All is well until the user changes the name of the file
(I
want the user to be able to do this, move, or delete the files). When the
user changes the name, and then starts my application, the system tries to
re-install the file (and looks for the myaps.msi) instead of just starting
my
application up. Not what I want. I dont care what the user does with the
file.

I cant figure where this behavior is defined. Is there a "dont try to
re-install this file if deleted" setting in the installer part of VS 2005?

I have set the files and the folder as Vital = false and Tranistive = True
(or false). What am I missing or doing wrong?

Thanks,

Tom
Jan 3 '08 #4
I see. Thanks.

I was debating something like that also.

It still seems to me there is something not right here.

Does the unzip method work properly in Vista? What if there are two or more
users on one PC or Network? Does your program keep track of which users had
the files extracted into their local user folder? And if the user changes
their name does your program figure that out too? Just thinking out loud here.
"Family Tree Mike" wrote:
CMoya's approach is kind of what we do. We install zip files to a "support"
folder under the main app dir. On first run by a user, we unzip the files
using CSharpZip lib to the user's folder.

Occasionally where we have huge data files (1GB+) we write a custom action
to install the data to a common for all users.

VS Deployment projects care about the zip files, but not the contents after
they are extracted, even when within a custom action.

I hope this helps.

"Tracks" wrote:
I include some sample binary data files (produced by my software) with my
application installation for the user to do what they want with. I put the
files in the Users Personal Data Folder/(myappsname) with VS 2005 installer -
File Types screen. All is well until the user changes the name of the file (I
want the user to be able to do this, move, or delete the files). When the
user changes the name, and then starts my application, the system tries to
re-install the file (and looks for the myaps.msi) instead of just starting my
application up. Not what I want. I dont care what the user does with the file.

I cant figure where this behavior is defined. Is there a "dont try to
re-install this file if deleted" setting in the installer part of VS 2005?

I have set the files and the folder as Vital = false and Tranistive = True
(or false). What am I missing or doing wrong?

Thanks,

Tom
Jan 3 '08 #5

I see. A local user variable setting was what I was forgetting. Got those
and know how to use em! Sorta. I will try it.

Thanks for explaining,

Tom
"CMoya" wrote:
Once again,
1) Have Setup install the files (forget zip for now) into your APP FOLDER.
2) Create a Setting in your app (My Project -Settings) called FirstRun and
scoped to USER.
3) When your app (your APP.EXE) runs check the setting and copy the files to
the users profile (where it will remain regardless of anything). (If
My.Settings.FirstRun Then CopyFiles...).
4) Set the setting so you don't do it again for that user. When a new user
comes along his setting wont be set.

This really isn't all that difficult. Maybe I'm missing something? :)
Jan 3 '08 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Ken Lindner | last post by:
I have a need to become familiar with SQL Server 2000 for work. Needless to say I am new to SQL Server any version, but not IT in general. My employer has provided me with the SQL Server 2000...
10
by: Ed Stevens | last post by:
A tale of woe, and a question . . . Last week my boss said to me "we've installed DB2 Connect on this Solaris box. Make it work." Now, I've barely seen DB2 Connect on Windows, having fumbled...
13
by: bjhartin | last post by:
All, I was working at a client's site when I installed Visual Basic 6 on a machine at their request. Existing applications on this machine had specified version 4.0 of the Jet OLEDB provider in...
4
by: Claire | last post by:
Hi, I know this isn't strictly C# language related, but my service IS written in c# and I checked out the list of microsoft newsgroups for win2000 and couldn't really see one that applies. I'm...
5
by: Sagaert Johan | last post by:
hi I have the following problem: I have a C# application that uses an activeX . I installed the application and the NET 1.1 Runtimes on a clean pc When running the application i discover...
7
by: Adam | last post by:
Im trying to add an httphandler for all *.sgf file extensions. I have developed the handler, 1. installed it into the gac 2. added it to the machine.config: <httpHandlers> <add verb="*"...
5
by: Josef Brunner | last post by:
Hi everybody, I tried to publich my application to a simple file location. (no online publishing or anything like that.) Running the setup that VS generates for me works fine on my machine...
2
by: =?Utf-8?B?RGF2aWQgVGhpZWxlbg==?= | last post by:
Hi; We are writing an installer for our ASP.NET app and are hitting an argument over where the default directory for the app should be. Should it be (assuming standard folder layout): 1)...
1
by: danpeek101 | last post by:
Hi there, I am currently trying to rebuild an application that was initially designed for use on desktop PCs to be run over an RDC connection for multiple users. Part of the redesign includes...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.