|
Damn, this is a hot lead!! I had a feeling the problem was in the setup somewhere. I asked about this on CP and the inno setup list back in December (yes I've been on this problem for a while).
Did you change your setup based on moving your app to Win7 compatibility?
The app is compiled as 32bit as there are some third party components that are 32bit (and various other issues) so it's installed into the "Program Files (x86)" directory and there is an "All Users" option on the installer UI which I've been using to test this. I think this may well be the answer.
You might be interesting in the app I'm making as well ... it's for muso's!
http://www.jamsoft.co.uk/[^]
I'll get on this tonight and give an update here. Thanks!
|
|
|
|
|
Jammer wrote: Did you change your setup based on moving your app to Win7
compatibility?
Mine was Win7 to begin with...just never noticed a problem until I actually tried it after an install...just ran it from VS or otherwise directly from the location VS output the files.
|
|
|
|
|
Jammer wrote: You might be interesting in the app I'm making as well ... it's for
muso's!
That is so....strange.
My app is very, very similar in concept. More generalized and without some of the more advanced features, but...damn.
Great minds, thinking alike?
|
|
|
|
|
I'd like to think so ... but then being maverick is kinda appealing too
|
|
|
|
|
Hmm ... unfortunately this hasn't fixed it either. I've also tried "Permissions: everyone-modify;"
Back to the drawing board. Thanks GenJerDan
|
|
|
|
|
Looking at it again, a question:
That function looks to me like it is opening the selected file in its default program, yes?
If so, why not just do
System.Diagnostics.Process.Start(SelectedFile);
and let windows itself do the grunt work?
|
|
|
|
|
on a Digital Audio workstation there maybe many editor apps and many apps with file associations to the .wav extension for instance, I need to be able to be specific about the app.
It's been working fine for multiple releases of my app, then all of a sudden it's stopped working.
I'm thinking of ditching Inno Setup and trying to build a new installer using WiX ...
|
|
|
|
|
The suddenly stopped working part is probably Win7.
The only way to track it down will be to create a debug build that logs every step of the problem area to a file saved in a public directory, then install it under a "normal" user account.
|
|
|
|
|
Indeed, that is my conclusion as well.
|
|
|
|
|
Also when asking on the Inno Setup list I was told not to add this Permissions tag to the files ...
|
|
|
|
|
Really? What kind of sense does that make? If the app is running with the credentials of someone without permission to those files...it won't work.
|
|
|
|
|
I was thinking the same thing.
To be honest, I've decided to move to WiX for my installer. I'm going to create a new installer from the ground up. I've been meaning to do this since I started using WiX at work a few months ago, I prefer it in almost every way.
If the problem persists with the new installer I'll be closer to a solution!
I've started this same discussion on the Inno Setup newsgroup a few times now and a few suggestions are made and then the thread goes dead and I'm no nearer a solution. Time to really shake things up I think.
Thanks for all your help chap.
|
|
|
|
|
Jammer wrote: Time to really shake things up I think.
Almost always a good idea.
|
|
|
|
|
Just finished my new WiX installer. Ran it, ran the app and bingo, everything is working now ...
Hurrah for WiX!!!
|
|
|
|
|
hello
i face a error when i view report, some time this code is working fine bt some time give me error "LOAD REPORT FAIL"
i use blow code please check my code and give me suggestion,
private void BtnGenrate_Click(object sender, EventArgs e)<br />
{<br />
NomanInternational.Reports.PartyStatementRpt psrpt = new NomanInternational.Reports.PartyStatementRpt();<br />
DateTime start = Convert.ToDateTime(txtdateto.Text);<br />
DateTime end = Convert.ToDateTime(txtdatefrom.Text);<br />
crystalReportViewer1.ReportSource = psrpt;<br />
crystalReportViewer1.SelectionFormula = "{OB.heads}='" + Heads.Text + "' and {Recive.trans_date}>=#" + start.ToShortDateString() + "# and {Recive.trans_date}<=#" + end.ToShortDateString() + "# ";<br />
CrystalDecisions.CrystalReports.Engine.TextObject to = (CrystalDecisions.CrystalReports.Engine.TextObject)psrpt.ReportDefinition.Sections["Section1"].ReportObjects["Text12"];<br />
to.Text = txtdateto.Text;<br />
}
|
|
|
|
|
Please check this, if it makes sense.
|
|
|
|
|
where is the report file name in your code? looks like you didn't assigned the report file to report viewer. So you have missed the below line in your code.
psrpt.Load(@"C:\reportname.rpt");
And also other reasons
1. Ensure the RPT file name is correct. Filename must be a fully qualified valid path name (such as C:\MyApp\MyReport.rpt).
2. The ASPNET account has permissions to open the file. Make sure the folder containing the file and the file itself has the same permissions as your application folder.
For more....[^]
|
|
|
|
|
My this Code Working Fine
NomanInternational.Reports.PartyStatementRpt psrpt = new NomanInternational.Reports.PartyStatementRpt();<br />
DateTime start = Convert.ToDateTime(txtdateto.Text);<br />
DateTime end = Convert.ToDateTime(txtdatefrom.Text);<br />
crystalReportViewer1.ReportSource = psrpt;<br />
crystalReportViewer1.SelectionFormula = "{OB.heads}='" + Heads.Text + "' and {Recive.trans_date}>=#" + start.ToShortDateString() + "# and {Recive.trans_date}<=#" + end.ToShortDateString() + "# ";
but when i insert this line
CrystalDecisions.CrystalReports.Engine.TextObject to = (CrystalDecisions.CrystalReports.Engine.TextObject)psrpt.ReportDefinition.Sections["GroupHeaderSection1"].ReportObjects["Text13"];<br />
to.Text = Obcr.Text;
Reports show error
"Load Report Failed"
Please Help Me
|
|
|
|
|
May be try to verify database in report. Confirm the name of the text object. Then try again & let us know.
|
|
|
|
|
Hi,
I have developed an application in visual c# 2010 express on my local PC.
The appplication uses the sql server 2005 express also on my local machine.
Now I would like to install this application on another Machine which is not connected to the Network.
I would like to create a setup on a CD or something so that I can take it to the target machine and install the applpication.
I have not been able to find a guidance on my exact requirement.
can you please point me to the right directions?
Many thanks
|
|
|
|
|
Just create a Deployment project and it will do all the work for you.
It is under New Project...Other Project Types...Setup and deployment. If you look at the Visual Studio Installer tab, there is a wizard which should make it pretty simple.
Real men don't use instructions. They are only the manufacturers opinion on how to put the thing together.
Manfred R. Bihy: "Looks as if OP is learning resistant."
|
|
|
|
|
I checked but it seems that visual c# 2010 express does not have setup or install functionality.
Any work around for this please?
Thanks
|
|
|
|
|
Basically, you will have to do the hard work.
You need to install:
.NET framework for the version your software uses: probably 4.0.
SQLExpress 2005.
Then your app.
The last one is the easy bit: copy all the files from the bin/release folder to somewhere relevant on the target, and hope...
Or upgrade to a paid version of VS? Or buy an installer program? Nasty, but true...
Other than that, I don't know - I have paid versions of VS2008 / 2010 so I haven't needed to try it!
Good Luck!
Real men don't use instructions. They are only the manufacturers opinion on how to put the thing together.
Manfred R. Bihy: "Looks as if OP is learning resistant."
|
|
|
|
|
Hi,
A few questions regarding your reply please:
1- As well as the sql server 2005 express, is there another download for the sql server 2005 express management studio?
2- My files are in the bin\debug folder. Is that ok to copy these ones which include the .dll, .exe, etc...?
3- what do you mean exactly by somewhere relevant on the target machine?
Thank you
|
|
|
|
|
1) Google say "yes": at MSDN. Haven't tried the links because I use 2008 and don't want to risk messing it up!
2) Yes, but I would build the release version and copy from bin\release instead. Should be faster version.
3) "Program Files\MyAppName" would be a good start!
Real men don't use instructions. They are only the manufacturers opinion on how to put the thing together.
Manfred R. Bihy: "Looks as if OP is learning resistant."
|
|
|
|