Hi to all:
I have this line in the Appdata folder,in my innosetup, because i want install my project in Vista:
[APPDATA]
Source: e:projectos vbwinbirds profissionalbd vazia para wbpprogaves.mdb; DestDir: {app}; Flags: ignoreversion;
Source: e:projectos vbwinbirds profissionalwinbirds profissionalficha_individual.rpt; DestDir: {app}; Flags: ignoreversion;
But innosetup don't install this files in the appropriate folder...
Something wrong in the code?
Thanks
Is this an InnoScript question or Inno Setup?
There is no such [APPDATA] section in Inno Setup so I don't see how your script even compiled and InnoScript does not place such a section in the script. Those lines of code are to be in the [Files] Section. Post your script.
This is the script
Thanks
Questions unanswered? Where did the section [APPDATA] come from???
Hi:
This section it's Wrong!!(just a tried to resolve the problem)But randem,in this case if I put this two files in the section FIles,I have a error in Vista in CR!
What I can do for resolve this?Because if I remove this files the program don't return errors,but removing this files I don't have the CR installed!
Please elaborate I don't have CR installed. Does the CR installation happen?
Installation on Vista is a different animal have you read Installing on Vista (https://randemsystems.support/innoscript-general-questions-report-bugs-problems-etc/making-your-application-vista-windows-7-windows-8-compliant/)
You cannot place the mdb in the {app} folder and possibly the .rpt files either.
You will most likely have to turn off UAC to install it then turn UAC back on also.
Hi:
Yes the CR installation happen!but when I start the program and try to see an Report I got a error!
Because I cannot place the rpt in files that's I have this problem...Where I put the rpt?
You need to reconstruct where you will be placing your data files. Vista just enforces this. The method has been around since NT 4. You need to use the {localappdata} or C:Documents and SettingsTheUsersNameLocal SettingsApplication DataYourCompanyNameYourProductName. You can also use the All Users location also if this database is to be share between multiple users on the same computer.
You can install the mdb in the {app} folder but on application startup it should be copied to the proper location.
This is very strange in Vista...I can not use my reports,and mdb's, in my folder?I need to remove them for C:Documents and SettingsTheUsersNameLocal SettingsApplication DataYourCompanyNameYourProductName
Off course this is metthod is compatible with XP no?
Yes, that is the way things should have been coded since NT 4.0. Coders were very lax in doing this and it will cost them in the move to Vista. It is for the users and application protection.
Ok...I will chance my code in VB and then try this metthod...
Thanks
Hi Randem:
I had change a few thinks in my code and i had installed in a Clean System with Vista...The program work well,but when i call the report I got this error:
Run time error:
Component CRViewer.dll or one of it's dependencies not correctly registered:a file is missing or invalid
Innosetup don't regist this component in the installation?Or this is something else?
Thanks
Check your installation log in the installation users temp folder for a file named Setup Log followed by the date and then a number. This will tell you what happened during installation.
Did you allow your app to copy your data into the users data area?
This is that i have in the log:
Registering craxdrt.dll
{91FDA5AF-C945-4DDC-8C32-29A790CF16F0}b.5
C:ProgramasBusiness ObjectsCommon3.5bincraxdrt.dll
*************************************************
The whole log would help...
Sory...that's the Whole Log
It can't be. There were things that happened before that happened. Did you install under the same user? Run the installation and check again. There will be another log with the current date and a higher number for the log.
this is what the log should look like
You probably looked at the Install.log and I never asked for that one.
So what is the status?
Hi Randem:
Sory the delay off the answear...I had 3 days Out..
The File are attached...
Thanks for your help
Sory...this is the most recent
setup
Ok, everything look good and the install.log file you showed before stated that the dll was registered. Here is an install.log that shows where registration has failed on one item.
Well...this is bad...what is wrong???
Do you have some idea??
As always... Let's see that script.
And the current Install.log from the {app} folder.
I see that CRViewer.dll isn't even deployed so it must not be in your script. That would cause it not to be registered.
This is the script...
The install.log file i had ask a friend that had install the program to send me the file...
This file in my PC are not fiable!
Here is your problem directly in the script...
; Unknown Component (Possibly not registered) - CRViewer.dll - 78, - (CRViewer.dll)
This file is not properly registered on your machine so it is never deployed.
Unregister it and re-register it. This message must go away before it will be deployed.
ok...Let's try and then I return ok...
I must do this in annother PC that is a 15Km far way from me...
Thanks
Ok, I am researching this it might be our problem... I will have an answer either way by time you get back.
Hi:
I try regist the component manually but i can't i don't know why:
regsvr32.exe C:ProgramasBusiness ObjectsCommon3.5crystalreportviewers115ActiveXControlscrviewer.dll
the error returned by windows:
Loadlibrary(C:ProgramasBusiness)as fail.Impossible locate the specified module...
This is very strange...The path are correct...
If I copy/paste the component to C:CRviewer.dll i can regist,but in the standard path no!!!
If i copy/paste this component again to the standard path after regist in C: the regist are valid?
You have to be in the same folder as the component to register it.
Sory!!!the syntax to regist are not correct?
You will need to change to be inside the C:\Programas\Business Objects\Common\3.5\crystalreportviewers115\ActiveXControls\ folder then execute the regsvr32 command. This is all at the DOS prompt.
sory...do you remember the command in DOS to go to a folder?
cd foldername
if the name contains spaces you may have to place it in quotes
cd folder
I just uploaded an update that takes care of the crviewer.dll problem.
Hi Randem:
Regist are made in Crviewer.ddl and a new sricpt are run,but the script remain with the same message...
I had attached the script
This update you are upload where he is?
What????
The update is on the site.
Your script is still the old version...
New version of innoscript are installed...
I think the problem remain...
You have a strange entry for crviewer.dll
; Unknown Component (Possibly not registered) - CRViewer.dll - 73,0 - (CRViewer.dll)
It's the 73,0 that is the issue. I believe I know what it is. Give me a few moments.
Try this one. I forgot about the country formatting...
I had to make an adjustment
I had installed the last adjustment
I think the problem remain
Use the Registered files viewer in InnoScript to see what the version number is on the crviewer.dll file.
View->Registered Components
version B.5
Ok, Open your .vbp file in notepad and post the contents.
Randem,I Need to leave now for a few hours...
If you find something please post ok?
Thanks for your help
Can't find anything without that .vbp file.
I will go to sleep now, it's 2:27am...
Where is the .vbp file? I need to see the contents for I believe the problem is there.
Hi Randem:
Sory the delay...today i'm out all day too,but i leave here the .vbp file ok?
THanks
That's not the vbp file. The Visual Basic Project File. The one you open to code in VB...
Hi Randem:
See if is the attached file
I cannot reproduce your issue here. I am attaching the script I generated from your vbp file and another exe. Replace the one you have with this one and re-run InnoScript. Post the results.
I get the error because I don't have CR 11 loaded but the output of that line is different for me.
InnoScript exe dated 8/24/2008
InnoScript.zip (https://randemsystems.support/index.php?topic=1.0) (293.5 k)
Hi:
The results...YOu can try with CR10...I had make the test with CR10 and the problem remain.
Thanks
Try this for me. In the VB IDE place a break point in your application just to run this statement. In the immediate window type
? LCase(Hex(Val(Int(11.5))))
Then let me know what gets shown.
Hi:
The value returned is 73
Ok, that is where the problem is. Try this:
? LCase(Hex(Int(Val(11.5))))
the value is b
Ok, got it. You have a Spanish version of Windows (or at least the code page) and it does something strange in that conversion.
the script
The version Windows is in Portuguese language,not in Spanish!
Ooopps, Sorry...
Try this in the IDE
? Hex(Abs(Int(Val(11.5)) - CDbl(11.5)))
then
? Hex(Abs(Int(Val(11.5))) - CDbl(11.5))
Values returned:
68
FFFFFF98
I have no idea of what that version is doing...
Try this:
? CDbl(11.5)
? Val(11.5)
Values:
115
11,5
OK, getting closer. It's the country formatting
Try
Int(Val(11.5)) - Val(11.5)
value:
-0,5
Ok, this should do it.
Thanks for your patience and assistance.
In fact,this is not easy
Maybe the problem it's not concerning with the country version no?
Ok, now when you looked into InnoScript View->Registered Components was the b lower case or Upper case?
Lower Case: b.5
Slight Oversight
Finnaly,the problem as gone!!
Very well Randem...nice job!
Now I'm must test this in the PC I had tell you,to see if everything is ok!
Later I post the result ok?
Thanks a lot for your patience
No, Thank you!!!
I can not rest till all things wrong are right (well with InnoScript anyways...)
Time for sleep...
Hi Randem:
Everything work fine in Vista an XP(Just today a had opportunity to complete the tests)...tests are ended for this problem...
Thanks a lot
You are welcome. Glad things are working well.