Indigo Rose Software

Professional Software Development Tools

 
+ Reply to Thread
Results 1 to 9 of 9
  1. #1
    Join Date
    Mar 2009
    Posts
    9

    Grin %fontsfolder% is blank

    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.

  2. #2
    Join Date
    Apr 2005
    Location
    São Paulo, Brazil
    Posts
    2,539
    I cannot confirm this. There might be a problem somewhere, but it is not exactly like you say.

    Code:
    Dialog.Message("Info", "Operating system: " .. System.GetOSName() .. "\r\nFonts folder: " .. SessionVar.Expand("%FontsFolder%"), MB_OK, MB_ICONINFORMATION);
    SNAP-2011-09-06-01.png

    Ulrich
    Last edited by Ulrich; 09-06-2011 at 10:55 AM.

  3. #3
    Join Date
    Mar 2009
    Posts
    9
    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.

  4. #4
    Join Date
    Apr 2005
    Location
    São Paulo, Brazil
    Posts
    2,539
    When you connect to the Windows Server using remote desktop, and open regedit.exe, what do you see set as the value for Fonts under HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders ?

    Ulrich

  5. #5
    Join Date
    Mar 2009
    Posts
    9
    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.

  6. #6
    Join Date
    Mar 2009
    Posts
    9
    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

  7. #7
    Join Date
    Mar 2009
    Posts
    9
    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.

  8. #8
    Join Date
    Apr 2005
    Location
    São Paulo, Brazil
    Posts
    2,539
    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

  9. #9
    Join Date
    Mar 2009
    Posts
    9
    Our servers that we run these setup on are standalone servers run under the Administrator account. There are no policies blocking installation of fonts.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts