Randem Systems Support Board

InnoScript => InnoScript - General Questions, Report Bugs, Problems etc... => Topic started by: sacramento on August 17, 2008, 08:58:05 AM

Title: Appdata an Vista
Post by: sacramento on August 17, 2008, 08:58:05 AM
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
Title: Appdata an Vista
Post by: Randem on August 17, 2008, 09:29:56 AM
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.
Title: Appdata an Vista
Post by: sacramento on August 17, 2008, 11:08:41 AM
This is the script
 
Thanks
Title: Appdata an Vista
Post by: Randem on August 17, 2008, 05:41:59 PM
Questions unanswered? Where did the section [APPDATA] come from???
Title: Appdata an Vista
Post by: sacramento on August 17, 2008, 09:25:06 PM
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!
Title: Appdata an Vista
Post by: Randem on August 17, 2008, 09:29:39 PM
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.
Title: Appdata an Vista
Post by: Randem on August 17, 2008, 09:46:25 PM
You will most likely have to turn off UAC to install it then turn UAC back on also.
Title: Appdata an Vista
Post by: sacramento on August 17, 2008, 09:52:18 PM
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?
Title: Appdata an Vista
Post by: Randem on August 17, 2008, 09:58:04 PM
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.
Title: Appdata an Vista
Post by: sacramento on August 17, 2008, 10:08:48 PM
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?
Title: Appdata an Vista
Post by: Randem on August 17, 2008, 10:12:24 PM
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.
Title: Appdata an Vista
Post by: sacramento on August 17, 2008, 10:18:09 PM
Ok...I will chance my code in VB and then try this metthod...
 
Thanks
Title: Appdata an Vista
Post by: sacramento on August 20, 2008, 01:04:32 AM
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
Title: Appdata an Vista
Post by: Randem on August 20, 2008, 09:24:19 AM
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?
Title: Appdata an Vista
Post by: sacramento on August 20, 2008, 01:53:57 PM
This is that i have in the log:
 
Registering craxdrt.dll
 
{91FDA5AF-C945-4DDC-8C32-29A790CF16F0}b.5
 
C:ProgramasBusiness ObjectsCommon3.5bincraxdrt.dll
*************************************************
Title: Appdata an Vista
Post by: Randem on August 20, 2008, 01:55:39 PM
The whole log would help...
Title: Appdata an Vista
Post by: sacramento on August 20, 2008, 02:25:09 PM
Sory...that's the Whole Log
Title: Appdata an Vista
Post by: Randem on August 20, 2008, 06:46:05 PM
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.
Title: Appdata an Vista
Post by: Randem on August 20, 2008, 06:50:52 PM
this is what the log should look like
 
 
 
You probably looked at the Install.log and I never asked for that one.
Title: Appdata an Vista
Post by: Randem on August 22, 2008, 11:39:09 AM
So what is the status?
Title: Appdata an Vista
Post by: sacramento on August 22, 2008, 08:38:14 PM
Hi Randem:
Sory the delay off the answear...I had 3 days Out..
The File are attached...
 
Thanks for your help
Title: Appdata an Vista
Post by: sacramento on August 22, 2008, 08:45:47 PM
Sory...this is the most recent
 setup
Title: Appdata an Vista
Post by: Randem on August 22, 2008, 08:57:38 PM
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.
 
Title: Appdata an Vista
Post by: sacramento on August 22, 2008, 09:00:38 PM
Well...this is bad...what is wrong???
Do you have some idea??
Title: Appdata an Vista
Post by: Randem on August 22, 2008, 09:03:11 PM
As always... Let's see that script.  
 
And the current Install.log from the {app} folder.
Title: Appdata an Vista
Post by: Randem on August 22, 2008, 09:07:57 PM
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.
Title: Appdata an Vista
Post by: sacramento on August 22, 2008, 09:11:07 PM
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!
Title: Appdata an Vista
Post by: Randem on August 22, 2008, 09:16:11 PM
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.
Title: Appdata an Vista
Post by: sacramento on August 22, 2008, 09:29:25 PM
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
Title: Appdata an Vista
Post by: Randem on August 22, 2008, 09:30:50 PM
Ok, I am researching this it might be our problem... I will have an answer either way by time you get back.
Title: Appdata an Vista
Post by: sacramento on August 22, 2008, 10:29:28 PM
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?
Title: Appdata an Vista
Post by: Randem on August 22, 2008, 10:32:24 PM
You have to be in the same folder as the component to register it.
Title: Appdata an Vista
Post by: sacramento on August 22, 2008, 10:55:30 PM
Sory!!!the syntax to regist are not correct?
Title: Appdata an Vista
Post by: Randem on August 22, 2008, 10:58:57 PM
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.
Title: Appdata an Vista
Post by: sacramento on August 22, 2008, 11:03:34 PM
sory...do you remember the command in DOS to go to a folder?
Title: Appdata an Vista
Post by: Randem on August 22, 2008, 11:07:39 PM
cd foldername
 
if the name contains spaces you may have to place it in quotes
 
cd folder
Title: Appdata an Vista
Post by: Randem on August 23, 2008, 12:10:13 AM
I just uploaded an update that takes care of the crviewer.dll problem.
Title: Appdata an Vista
Post by: sacramento on August 23, 2008, 01:11:01 AM
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
Title: Appdata an Vista
Post by: sacramento on August 23, 2008, 01:12:25 AM
This update you are upload where he is?
Title: Appdata an Vista
Post by: Randem on August 23, 2008, 01:13:35 AM
What????
 
The update is on the site.
Title: Appdata an Vista
Post by: Randem on August 23, 2008, 01:28:34 AM
Your script is still the old version...
Title: Appdata an Vista
Post by: sacramento on August 23, 2008, 01:28:55 AM
New version of innoscript are installed...
I think the problem remain...
 
Title: Appdata an Vista
Post by: Randem on August 23, 2008, 01:35:46 AM
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.
Title: Appdata an Vista
Post by: Randem on August 23, 2008, 01:49:03 AM
Try this one. I forgot about the country formatting...
 
Title: Appdata an Vista
Post by: Randem on August 23, 2008, 02:06:32 AM
I had to make an adjustment
 
Title: Appdata an Vista
Post by: sacramento on August 23, 2008, 02:13:09 AM
I had installed the last adjustment
I think the problem remain
Title: Appdata an Vista
Post by: Randem on August 23, 2008, 02:16:01 AM
Use the Registered files viewer in InnoScript to see what the version number is on the crviewer.dll file.
 
View->Registered Components
Title: Appdata an Vista
Post by: sacramento on August 23, 2008, 02:18:59 AM
version B.5
Title: Appdata an Vista
Post by: Randem on August 23, 2008, 02:24:13 AM
Ok, Open your .vbp file in notepad and post the contents.
Title: Appdata an Vista
Post by: sacramento on August 23, 2008, 02:24:25 AM
Randem,I Need to leave now for a few hours...
If you find something please post ok?
 
Thanks for your help
Title: Appdata an Vista
Post by: Randem on August 23, 2008, 02:27:12 AM
Can't find anything without that .vbp file.
 
I will go to sleep now, it's 2:27am...
Title: Appdata an Vista
Post by: Randem on August 23, 2008, 11:40:15 AM
Where is the .vbp file? I need to see the contents for I believe the problem is there.
Title: Appdata an Vista
Post by: sacramento on August 23, 2008, 09:43:36 PM
Hi Randem:
 
Sory the delay...today i'm out all day too,but i leave here the .vbp file ok?
 
THanks
Title: Appdata an Vista
Post by: Randem on August 23, 2008, 09:47:38 PM
That's not the vbp file. The Visual Basic Project File. The one you open to code in VB...
Title: Appdata an Vista
Post by: sacramento on August 24, 2008, 11:14:24 AM
Hi Randem:
 
See if is the attached file
Title: Appdata an Vista
Post by: Randem on August 24, 2008, 01:38:56 PM
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)
Title: Appdata an Vista
Post by: sacramento on August 24, 2008, 08:49:25 PM
Hi:
The results...YOu can try with CR10...I had make the test with CR10 and the problem remain.
 
Thanks
Title: Appdata an Vista
Post by: Randem on August 24, 2008, 10:21:24 PM
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.
Title: Appdata an Vista
Post by: sacramento on August 24, 2008, 11:38:05 PM
Hi:
 
The value returned is 73
Title: Appdata an Vista
Post by: Randem on August 24, 2008, 11:39:39 PM
Ok, that is where the problem is. Try this:
 
? LCase(Hex(Int(Val(11.5))))
Title: Appdata an Vista
Post by: sacramento on August 24, 2008, 11:42:40 PM
the value is b
Title: Appdata an Vista
Post by: Randem on August 24, 2008, 11:46:19 PM
Ok, got it. You have a Spanish version of Windows (or at least the code page) and it does something strange in that conversion.
 
Title: Appdata an Vista
Post by: sacramento on August 24, 2008, 11:50:19 PM
the script
Title: Appdata an Vista
Post by: sacramento on August 24, 2008, 11:52:12 PM
The version Windows is in Portuguese language,not in Spanish!
Title: Appdata an Vista
Post by: Randem on August 24, 2008, 11:56:36 PM
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))
Title: Appdata an Vista
Post by: sacramento on August 25, 2008, 12:00:15 AM
Values returned:
68
FFFFFF98
Title: Appdata an Vista
Post by: Randem on August 25, 2008, 12:03:00 AM
I have no idea of what that version is doing...
Try this:
 
? CDbl(11.5)
? Val(11.5)
Title: Appdata an Vista
Post by: sacramento on August 25, 2008, 12:05:19 AM
Values:
115
11,5
Title: Appdata an Vista
Post by: Randem on August 25, 2008, 12:08:25 AM
OK, getting closer. It's the country formatting
 
Try
 
Int(Val(11.5)) - Val(11.5)
Title: Appdata an Vista
Post by: sacramento on August 25, 2008, 12:13:32 AM
value:
-0,5
Title: Appdata an Vista
Post by: Randem on August 25, 2008, 12:17:49 AM
Ok, this should do it.
 
Thanks for your patience and assistance.  
 
Title: Appdata an Vista
Post by: sacramento on August 25, 2008, 12:22:16 AM
In fact,this is not easy
Title: Appdata an Vista
Post by: sacramento on August 25, 2008, 12:24:12 AM
Maybe the problem it's not concerning with the country version no?
Title: Appdata an Vista
Post by: Randem on August 25, 2008, 12:24:55 AM
Ok, now when you looked into InnoScript View->Registered Components was the b lower case or Upper case?
Title: Appdata an Vista
Post by: sacramento on August 25, 2008, 12:26:55 AM
Lower Case: b.5
Title: Appdata an Vista
Post by: Randem on August 25, 2008, 12:34:12 AM
Slight Oversight
 
Title: Appdata an Vista
Post by: sacramento on August 25, 2008, 12:40:05 AM
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
Title: Appdata an Vista
Post by: Randem on August 25, 2008, 12:42:16 AM
No, Thank you!!!
 
I can not rest till all things wrong are right (well with InnoScript anyways...)  
 
Time for sleep...
Title: Appdata an Vista
Post by: sacramento on August 31, 2008, 10:26:17 PM
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
Title: Appdata an Vista
Post by: Randem on August 31, 2008, 10:28:32 PM
You are welcome. Glad things are working well.