LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Installer File Saving

Solved!
Go to solution
My application opens Excel and changes a workbook sheet name. It then saves the excel file to a subdirectory called “archive” whose path is determined programmatically. I created an executable and it works fine... without user intervention. However, when I create an installer, my program forgets that I have given the subdirectory and filename to save to already and displays a dialog asking if I want to save the file I just created. I am using Labview 2009 evaluation vers. and would appreciate any ideas about where I am going wrong. thanks
0 Kudos
Message 1 of 8
(3,118 Views)
You said "my program forgets that I have given the subdirectory and filename to save to already". Given how? Where is this path being generated? What is the path? How are you generating it?
0 Kudos
Message 2 of 8
(3,113 Views)
I am using the application directory vi to determine the path.  I have attempted to attach my development code showing this.
0 Kudos
Message 3 of 8
(3,097 Views)
Solution
Accepted by topic author Curt240

Are you running on Windows Vista or Windows 7? On those operating systems UAC will not allow you to write to the Program Files directory unless you have administrative privilege.

 

Additional comment: You don't have ANY of the error I/O wired! How will you know if you have an error?

Message Edited by smercurio_fc on 04-26-2010 12:25 PM
0 Kudos
Message 4 of 8
(3,087 Views)

Are you creating the "Archive" folder by installing a dummy file there as part of your installer?

If not, you need to create this folder by adding the create folder.vi

 

create folder.png

 

Without a valid file path the dialog will open by default.

 

Hope this solves your problem.

 

James

LabVIEW 5.0 seems so long ago...
0 Kudos
Message 5 of 8
(3,080 Views)

I am using Windows 7 OS and will be checking my admin privileges. 

I did not create a dummy file in the installer and will try that also. 

 

thanks

0 Kudos
Message 6 of 8
(3,071 Views)

My problem was admin privileges in Windows 7. 

thanks again.

0 Kudos
Message 7 of 8
(3,028 Views)
Just a quick note... the restriction was added for security reasons. The preferred method is to store data that needs to be modified in the ProgramData folder (e.g. the program in C:\Program Files\MyApplication\ can store its changeable data in C:\ProgramData\MyApplication\).
0 Kudos
Message 8 of 8
(3,023 Views)