In a remote desktop session on a Windows server 2003, the %FontsFolder% is blank. When it gets to installing the font(s), we get the error "the parameter is incorrect".
How can I fix this? I need to install fonts with our packages.
Professional Software Development Tools
In a remote desktop session on a Windows server 2003, the %FontsFolder% is blank. When it gets to installing the font(s), we get the error "the parameter is incorrect".
How can I fix this? I need to install fonts with our packages.
I cannot confirm this. There might be a problem somewhere, but it is not exactly like you say.
SNAP-2011-09-06-01.pngCode:Dialog.Message("Info", "Operating system: " .. System.GetOSName() .. "\r\nFonts folder: " .. SessionVar.Expand("%FontsFolder%"), MB_OK, MB_ICONINFORMATION);
Ulrich
Last edited by Ulrich; 09-06-2011 at 10:55 AM.
Below is my code in startup and the top portion of my log file that shows the %fontsfolder% is blank. What would the problem be then? How do I fix it?
Code:_OsName = System.GetOSName(); _FontsFolder = SessionVar.Expand("%FontsFolder%"); SetupData.WriteToLogFile("OSName: ".._OsName.."\r\n", true); SetupData.WriteToLogFile("FontsFolder: ".._FontsFolder.."\r\n", true);Code:[09/06/2011 12:07:12] Success Setup started: D:\ASC-UTILS\ascss2_client_v02000103.exe [09/06/2011 12:07:12] Notice Setup engine version: 8.2.2.0 [09/06/2011 12:07:12] Notice Product: Service Scheduling, version 2.0.1.3 [09/06/2011 12:07:13] Success Language set: Primary = 9, Secondary = 1 [09/06/2011 12:07:13] Success Verify archive integrity [09/06/2011 12:07:13] Skipped Date expiration check [09/06/2011 12:07:13] Skipped Uses expiration check [09/06/2011 12:07:13] Success System requirements check [09/06/2011 12:07:13] Success Include script: _SUF70_Global_Functions.lua [09/06/2011 12:07:13] Notice Start project event: Global Functions [09/06/2011 12:07:13] Success Run project event: Global Functions [09/06/2011 12:07:13] Notice Start project event: On Startup [09/06/2011 12:07:13] OSName: Windows Server 2003 [09/06/2011 12:07:13] FontsFolder: [09/06/2011 12:07:13] Success Run project event: On Startup
Last edited by korazy; 09-06-2011 at 11:08 AM.
It was blank, then i opened explorer and navigated to d:\windows\fonts to get the path to search the registry for an alternative. Now its there.
Thanks.
I had the Fonts folder set in the registry and then I ran the setup again. I had regmon running when I did that and it's irsetup.exe that is clearing the registry entry.
Code:1:08:12 PM irsetup.exe:4108 CreateKey HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders SUCCESS 1:08:12 PM irsetup.exe:4108 QueryValue HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders\Fonts NOT FOUND 1:08:12 PM irsetup.exe:4108 CloseKey HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders SUCCESS 1:08:12 PM irsetup.exe:4108 CreateKey HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders SUCCESS 1:08:12 PM irsetup.exe:4108 SetValue HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders\Fonts SUCCESS "" 1:08:12 PM irsetup.exe:4108 CloseKey HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders SUCCESS 1:08:12 PM irsetup.exe:4108 OpenKey HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders SUCCESS 1:08:12 PM irsetup.exe:4108 QueryValue HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders\Fonts SUCCESS "" 1:08:12 PM irsetup.exe:4108 QueryValue HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders\Fonts SUCCESS "" 1:08:12 PM irsetup.exe:4108 QueryValue HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders\Fonts SUCCESS "" 1:08:12 PM irsetup.exe:4108 QueryValue HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders\Fonts SUCCESS "" 1:08:12 PM irsetup.exe:4108 CloseKey HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders SUCCESS
Just to expand on my previous post. I don't not have any scripts in my setup except the 4 lines in my previous post trying to figure out why installing fonts does not work. Other than that I have file going to the application folder and one font. No scripts, so the clearing of the registry entry "HKCU\Software\Microsoft\Windows\CurrentVersion\Ex plorer\Shell Folders\Fonts" will not be from something I have in my setup package.
Hi again, I talked with one of the developers about this, and he can't explain what you are experiencing. Setup Factory should not clear that registry key by itself. You can try to use Shell.GetFolder(SHF_FONTS) and see what that returns.
Also, make sure that there is nothing in the policies that prevents the user from installing fonts. I am not that versed in Windows Server to point you where you could look, sorry.
Ulrich
Our servers that we run these setup on are standalone servers run under the Administrator account. There are no policies blocking installation of fonts.