Windows Develop Bookmark and Share   
 index > Windows Forms Sample Applications > Problems Creating an Installer Package
 

Problems Creating an Installer Package

I have a program that intergrates a small development server, silverlight and a Test Web Application.


I built the application thinking it would be simple to keep all files in one place but in relevant directorys
eg: (vista) C:/Users/[User Name]/Program Files/[Company Name]/[App Name]/[This App]/


In This App Directory There is everything required by this software:

1. a folder Test(the test webapplication)
2. the .exe application
3. the exe.config
3. the icon for the application
4.TestServer.dll

So the install itself went pretty well with no problems.
I then went to start my app from the start menu.
I got thrown an error so i done some researching and found that if i run as administartor the program is working like a dream.

The problem occuring when not run as an administrator is the software tried to delete its tempdirectory in the test website. This directory is used to store the files the software creates for testing purposes, these inlude .css, .jpg, .aspx and so on.

But this wayof running (as administrator)is very much undesired.

Is there a way I can keep my Test Web Application inthe folderat the root of my .exe?
If so how can I go about this (setting up permissions or something) or If i can not what would be the most suitable option?


The user should not need to access these files (we site) that is used by the software.

Any help is much appreciated.

  • Edited bySpiderMaster Wednesday, May 27, 2009 11:37 AMforgot to add informatiion
  •  
SpiderMaster  Wednesday, May 27, 2009 11:34 AM
Hi SpiderMaster,

In Windows Vista, the security level is high. So you need to make sure the user running the application has the permission to modify the folder.

>Is there a way I can keep my Test Web Application inthe folderat the root of my .exe?
>If so how can I go about this (setting up permissions or something) or If i can not what would be the most suitable option?
>The user should not need to access these files (we site) that is used by the software.

As for how to set up permission, you can try to take at this article . Only assign the appropriate permission of the temp folder to the user if you don't want the user to access other web site files.

Please let me know if the problem can't be solved.

Best regards,
Bruce Zhou
Please mark the replies as answers if they help and unmark if they don't.
Bruce.Zhou  Monday, June 01, 2009 10:12 AM
Hi SpiderMaster,

In Windows Vista, the security level is high. So you need to make sure the user running the application has the permission to modify the folder.

>Is there a way I can keep my Test Web Application inthe folderat the root of my .exe?
>If so how can I go about this (setting up permissions or something) or If i can not what would be the most suitable option?
>The user should not need to access these files (we site) that is used by the software.

As for how to set up permission, you can try to take at this article . Only assign the appropriate permission of the temp folder to the user if you don't want the user to access other web site files.

Please let me know if the problem can't be solved.

Best regards,
Bruce Zhou
Please mark the replies as answers if they help and unmark if they don't.
Bruce.Zhou  Monday, June 01, 2009 10:12 AM

You can use google to search for other answers

Custom Search

More Threads

• asgard2.0
• Custom control in a column of a Listview
• Can't install IssueVision due to a password complexity issue?
• FileNotFoud Exception???
• Any ETA?
• Right Click Events
• A clean slate
• Plugin frame work
• Creating msi installer
• Terrarium Servers Back Up!