On reflection, you could possibly make the app a self extracting zip file
which extracts the EXE and a settings file and then starts the app, then when
you app closes, it can repack the settings file and itself into the exe. You
would probably want a tool for this bit which could be in the zip too.
So the app isnt single exe when running but when not running, it is.
Just an idea for you to think about.
Another option would possibly be to figure out whether you can access any
part of the exe file directly and modify some of it. Possibly add a few bytes
at the end which you can treat as structure storage and write the settings
to. I dont remember if the framework will checksum the exe when it loads it
or if this only happens for strong named assemblies.
--
Ciaran O''Donnell
"Claire" wrote:
which extracts the EXE and a settings file and then starts the app, then when
you app closes, it can repack the settings file and itself into the exe. You
would probably want a tool for this bit which could be in the zip too.
So the app isnt single exe when running but when not running, it is.
Just an idea for you to think about.
Another option would possibly be to figure out whether you can access any
part of the exe file directly and modify some of it. Possibly add a few bytes
at the end which you can treat as structure storage and write the settings
to. I dont remember if the framework will checksum the exe when it loads it
or if this only happens for strong named assemblies.
--
Ciaran O''Donnell
"Claire" wrote:
Hi,
I'm trying to test a deployment of my application on a Vista enterprise
machine
The deployment project was built within Visual Studio 2008
One of its prerequisites is that Crystal Reports basic that comes with VS is
installed, and this is installed from the local machine.
On my "cleanish" vista pc, setup detects that Crystal reports is not
installed so attempts to install it for me.
After a few seconds, installation of Crystal Reports fails with error code
1603.
I'm running setup as administrator.
>
The following is a copy of the log file produced.
Anyone any ideas as to what it going wrong here and how i can fix it please?
>
Claire
>
The following properties have been set:
Property: [AdminUser] = true {boolean}
Property: [ProcessorArchit ecture] = Intel {string}
Property: [VersionNT] = 6.0.1 {version}
Running checks for package '.NET Framework 2.0 (x86)', phase BuildList
Running external check with command
'C:\Users\Clair e\AppData\Local \Temp\VSD67F6.t mp\DotNetFX\dot netchk.exe' and
parameters ''
Process exited with code 1
Setting value '1 {int}' for property 'DotNetInstalle d'
Reading value 'Version' of registry key 'HKLM\Software\ Microsoft\Inter net
Explorer'
Read string value '7.0.6001.18000 '
Setting value '7.0.6001.18000 {string}' for property 'IEVersion'
The following properties have been set for package '.NET Framework 2.0
(x86)':
Property: [DotNetInstalled] = 1 {int}
Property: [IEVersion] = 7.0.6001.18000 {string}
Running checks for command 'DotNetFX\instm sia.exe'
Result of running operator 'ValueExists' on property 'VersionNT': true
Result of checks for command 'DotNetFX\instm sia.exe' is 'Bypass'
Running checks for command 'DotNetFX\Windo wsInstaller-KB893803-v2-x86.exe'
Result of running operator 'ValueExists' on property 'Version9x': false
Result of running operator 'VersionLessTha n' on property 'VersionNT' and
value '5.0.3': false
Result of running operator 'VersionGreater ThanOrEqualTo' on property
'VersionMsi' and value '3.0': true
Result of checks for command 'DotNetFX\Windo wsInstaller-KB893803-v2-x86.exe'
is 'Bypass'
Running checks for command 'DotNetFX\dotne tfx.exe'
Result of running operator 'ValueNotEqualT o' on property 'DotNetInstalle d'
and value '0': true
Result of checks for command 'DotNetFX\dotne tfx.exe' is 'Bypass'
'.NET Framework 2.0 (x86)' RunCheck result: No Install Needed
Running checks for package 'Crystal Reports Basic for Visual Studio 2008
(x86, x64)', phase BuildList
Running MsiProductCheck with ProductCode
'{AA467959-A1D6-4F45-90CD-11DC57733F32}'
MsiQueryProduct State returned '-1'
Setting value '-1 {int}' for property 'CRVSInstalled'
Running MsiProductCheck with ProductCode
'{CE26F10F-C80F-4377-908B-1B7882AE2CE3}'
MsiQueryProduct State returned '-1'
Setting value '-1 {int}' for property 'CRVSRunTimex86 Installed'
Running MsiProductCheck with ProductCode
'{2BFA9B05-7418-4EDE-A6FC-620427BAAAA3}. '
MsiQueryProduct State returned '-2'
Setting value '-2 {int}' for property 'CRVSRunTimex64 Installed'
The following properties have been set for package 'Crystal Reports Basic
for Visual Studio 2008 (x86, x64)':
Property: [CRVSInstalled] = -1 {int}
Property: [CRVSRunTimex64I nstalled] = -2 {int}
Property: [CRVSRunTimex86I nstalled] = -1 {int}
Running checks for command 'CrystalReports 10_5\CRRedist20 08_x86.msi'
Result of running operator 'ValueNotEqualT o' on property
'ProcessorArchi tecture' and value 'Intel': false
Result of running operator 'ValueGreaterTh an' on property 'CRVSInstalled'
and value '0': false
Result of running operator 'ValueGreaterTh an' on property
'CRVSRunTimex86 Installed' and value '0': false
Result of running operator 'ValueEqualTo' on property 'AdminUser' and value
'false': false
Skipping FailIf because Property 'Version9x' was not defined
Result of running operator 'VersionLessTha n' on property 'VersionNT' and
value '5.00': false
Result of checks for command 'CrystalReports 10_5\CRRedist20 08_x86.msi' is
'Install'
Running checks for command 'CrystalReports 10_5\CRRedist20 08_x64.msi'
Result of running operator 'ValueNotEqualT o' on property
'ProcessorArchi tecture' and value 'AMD64': true
Result of checks for command 'CrystalReports 10_5\CRRedist20 08_x64.msi' is
'Bypass'
'Crystal Reports Basic for Visual Studio 2008 (x86, x64)' RunCheck result:
Install Needed
EULA for components 'Crystal Reports Basic for Visual Studio 2008 (x86,
x64)' was accepted.
Copying files to temporary directory
"C:\Users\Clair e\AppData\Local \Temp\VSD67F6.t mp\"
Copying from 'C:\Temp\Instal ler\CrystalRepo rts10_5\CRRedis t2008_x86.msi' to
'C:\Users\Clair e\AppData\Local \Temp\VSD67F6.t mp\CrystalRepor ts10_5\CRRedist 2008_x86.msi'
Verifying file integrity of
C:\Users\Claire \AppData\Local\ Temp\VSD67F6.tm p\CrystalReport s10_5\CRRedist2 008_x86.msi
WinVerifyTrust returned 0
File trusted
Running checks for package 'Crystal Reports Basic for Visual Studio 2008
(x86, x64)', phase BeforePackage
Running MsiProductCheck with ProductCode
'{AA467959-A1D6-4F45-90CD-11DC57733F32}'
MsiQueryProduct State returned '-1'
Setting value '-1 {int}' for property 'CRVSInstalled'
Running MsiProductCheck with ProductCode
'{CE26F10F-C80F-4377-908B-1B7882AE2CE3}'
MsiQueryProduct State returned '-1'
Setting value '-1 {int}' for property 'CRVSRunTimex86 Installed'
Running MsiProductCheck with ProductCode
'{2BFA9B05-7418-4EDE-A6FC-620427BAAAA3}. '
MsiQueryProduct State returned '-2'
Setting value '-2 {int}' for property 'CRVSRunTimex64 Installed'
The following properties have been set for package 'Crystal Reports Basic
for Visual Studio 2008 (x86, x64)':
Property: [CRVSInstalled] = -1 {int}
Property: [CRVSRunTimex64I nstalled] = -2 {int}
Property: [CRVSRunTimex86I nstalled] = -1 {int}
Running checks for command 'CrystalReports 10_5\CRRedist20 08_x86.msi'
Result of running operator 'ValueNotEqualT o' on property
'ProcessorArchi tecture' and value 'Intel': false
Result of running operator 'ValueGreaterTh an' on property 'CRVSInstalled'
and value '0': false
Result of running operator 'ValueGreaterTh an' on property
'CRVSRunTimex86 Installed' and value '0': false
Result of running operator 'ValueEqualTo' on property 'AdminUser' and value
'false': false
Skipping FailIf because Property 'Version9x' was not defined
Result of running operator 'VersionLessTha n' on property 'VersionNT' and
value '5.00': false
Result of checks for command 'CrystalReports 10_5\CRRedist20 08_x86.msi' is
'Install'
'Crystal Reports Basic for Visual Studio 2008 (x86, x64)' RunCheck result:
Install Needed
Verifying file integrity of
C:\Users\Claire \AppData\Local\ Temp\VSD67F6.tm p\CrystalReport s10_5\CRRedist2 008_x86.msi
WinVerifyTrust returned 0
File trusted
Installing using command 'C:\Windows\sys tem32\msiexec.e xe' and parameters
' -I
"C:\Users\Clair e\AppData\Local \Temp\VSD67F6.t mp\CrystalRepor ts10_5\CRRedist 2008_x86.msi"
-q /norestart'
Will attempt to elevate process.
Process exited with code 1603
Status of package 'Crystal Reports Basic for Visual Studio 2008 (x86, x64)'
after install is 'InstallFailed'
>
I'm trying to test a deployment of my application on a Vista enterprise
machine
The deployment project was built within Visual Studio 2008
One of its prerequisites is that Crystal Reports basic that comes with VS is
installed, and this is installed from the local machine.
On my "cleanish" vista pc, setup detects that Crystal reports is not
installed so attempts to install it for me.
After a few seconds, installation of Crystal Reports fails with error code
1603.
I'm running setup as administrator.
>
The following is a copy of the log file produced.
Anyone any ideas as to what it going wrong here and how i can fix it please?
>
Claire
>
The following properties have been set:
Property: [AdminUser] = true {boolean}
Property: [ProcessorArchit ecture] = Intel {string}
Property: [VersionNT] = 6.0.1 {version}
Running checks for package '.NET Framework 2.0 (x86)', phase BuildList
Running external check with command
'C:\Users\Clair e\AppData\Local \Temp\VSD67F6.t mp\DotNetFX\dot netchk.exe' and
parameters ''
Process exited with code 1
Setting value '1 {int}' for property 'DotNetInstalle d'
Reading value 'Version' of registry key 'HKLM\Software\ Microsoft\Inter net
Explorer'
Read string value '7.0.6001.18000 '
Setting value '7.0.6001.18000 {string}' for property 'IEVersion'
The following properties have been set for package '.NET Framework 2.0
(x86)':
Property: [DotNetInstalled] = 1 {int}
Property: [IEVersion] = 7.0.6001.18000 {string}
Running checks for command 'DotNetFX\instm sia.exe'
Result of running operator 'ValueExists' on property 'VersionNT': true
Result of checks for command 'DotNetFX\instm sia.exe' is 'Bypass'
Running checks for command 'DotNetFX\Windo wsInstaller-KB893803-v2-x86.exe'
Result of running operator 'ValueExists' on property 'Version9x': false
Result of running operator 'VersionLessTha n' on property 'VersionNT' and
value '5.0.3': false
Result of running operator 'VersionGreater ThanOrEqualTo' on property
'VersionMsi' and value '3.0': true
Result of checks for command 'DotNetFX\Windo wsInstaller-KB893803-v2-x86.exe'
is 'Bypass'
Running checks for command 'DotNetFX\dotne tfx.exe'
Result of running operator 'ValueNotEqualT o' on property 'DotNetInstalle d'
and value '0': true
Result of checks for command 'DotNetFX\dotne tfx.exe' is 'Bypass'
'.NET Framework 2.0 (x86)' RunCheck result: No Install Needed
Running checks for package 'Crystal Reports Basic for Visual Studio 2008
(x86, x64)', phase BuildList
Running MsiProductCheck with ProductCode
'{AA467959-A1D6-4F45-90CD-11DC57733F32}'
MsiQueryProduct State returned '-1'
Setting value '-1 {int}' for property 'CRVSInstalled'
Running MsiProductCheck with ProductCode
'{CE26F10F-C80F-4377-908B-1B7882AE2CE3}'
MsiQueryProduct State returned '-1'
Setting value '-1 {int}' for property 'CRVSRunTimex86 Installed'
Running MsiProductCheck with ProductCode
'{2BFA9B05-7418-4EDE-A6FC-620427BAAAA3}. '
MsiQueryProduct State returned '-2'
Setting value '-2 {int}' for property 'CRVSRunTimex64 Installed'
The following properties have been set for package 'Crystal Reports Basic
for Visual Studio 2008 (x86, x64)':
Property: [CRVSInstalled] = -1 {int}
Property: [CRVSRunTimex64I nstalled] = -2 {int}
Property: [CRVSRunTimex86I nstalled] = -1 {int}
Running checks for command 'CrystalReports 10_5\CRRedist20 08_x86.msi'
Result of running operator 'ValueNotEqualT o' on property
'ProcessorArchi tecture' and value 'Intel': false
Result of running operator 'ValueGreaterTh an' on property 'CRVSInstalled'
and value '0': false
Result of running operator 'ValueGreaterTh an' on property
'CRVSRunTimex86 Installed' and value '0': false
Result of running operator 'ValueEqualTo' on property 'AdminUser' and value
'false': false
Skipping FailIf because Property 'Version9x' was not defined
Result of running operator 'VersionLessTha n' on property 'VersionNT' and
value '5.00': false
Result of checks for command 'CrystalReports 10_5\CRRedist20 08_x86.msi' is
'Install'
Running checks for command 'CrystalReports 10_5\CRRedist20 08_x64.msi'
Result of running operator 'ValueNotEqualT o' on property
'ProcessorArchi tecture' and value 'AMD64': true
Result of checks for command 'CrystalReports 10_5\CRRedist20 08_x64.msi' is
'Bypass'
'Crystal Reports Basic for Visual Studio 2008 (x86, x64)' RunCheck result:
Install Needed
EULA for components 'Crystal Reports Basic for Visual Studio 2008 (x86,
x64)' was accepted.
Copying files to temporary directory
"C:\Users\Clair e\AppData\Local \Temp\VSD67F6.t mp\"
Copying from 'C:\Temp\Instal ler\CrystalRepo rts10_5\CRRedis t2008_x86.msi' to
'C:\Users\Clair e\AppData\Local \Temp\VSD67F6.t mp\CrystalRepor ts10_5\CRRedist 2008_x86.msi'
Verifying file integrity of
C:\Users\Claire \AppData\Local\ Temp\VSD67F6.tm p\CrystalReport s10_5\CRRedist2 008_x86.msi
WinVerifyTrust returned 0
File trusted
Running checks for package 'Crystal Reports Basic for Visual Studio 2008
(x86, x64)', phase BeforePackage
Running MsiProductCheck with ProductCode
'{AA467959-A1D6-4F45-90CD-11DC57733F32}'
MsiQueryProduct State returned '-1'
Setting value '-1 {int}' for property 'CRVSInstalled'
Running MsiProductCheck with ProductCode
'{CE26F10F-C80F-4377-908B-1B7882AE2CE3}'
MsiQueryProduct State returned '-1'
Setting value '-1 {int}' for property 'CRVSRunTimex86 Installed'
Running MsiProductCheck with ProductCode
'{2BFA9B05-7418-4EDE-A6FC-620427BAAAA3}. '
MsiQueryProduct State returned '-2'
Setting value '-2 {int}' for property 'CRVSRunTimex64 Installed'
The following properties have been set for package 'Crystal Reports Basic
for Visual Studio 2008 (x86, x64)':
Property: [CRVSInstalled] = -1 {int}
Property: [CRVSRunTimex64I nstalled] = -2 {int}
Property: [CRVSRunTimex86I nstalled] = -1 {int}
Running checks for command 'CrystalReports 10_5\CRRedist20 08_x86.msi'
Result of running operator 'ValueNotEqualT o' on property
'ProcessorArchi tecture' and value 'Intel': false
Result of running operator 'ValueGreaterTh an' on property 'CRVSInstalled'
and value '0': false
Result of running operator 'ValueGreaterTh an' on property
'CRVSRunTimex86 Installed' and value '0': false
Result of running operator 'ValueEqualTo' on property 'AdminUser' and value
'false': false
Skipping FailIf because Property 'Version9x' was not defined
Result of running operator 'VersionLessTha n' on property 'VersionNT' and
value '5.00': false
Result of checks for command 'CrystalReports 10_5\CRRedist20 08_x86.msi' is
'Install'
'Crystal Reports Basic for Visual Studio 2008 (x86, x64)' RunCheck result:
Install Needed
Verifying file integrity of
C:\Users\Claire \AppData\Local\ Temp\VSD67F6.tm p\CrystalReport s10_5\CRRedist2 008_x86.msi
WinVerifyTrust returned 0
File trusted
Installing using command 'C:\Windows\sys tem32\msiexec.e xe' and parameters
' -I
"C:\Users\Clair e\AppData\Local \Temp\VSD67F6.t mp\CrystalRepor ts10_5\CRRedist 2008_x86.msi"
-q /norestart'
Will attempt to elevate process.
Process exited with code 1603
Status of package 'Crystal Reports Basic for Visual Studio 2008 (x86, x64)'
after install is 'InstallFailed'
>
Comment