Is System64Folder available in Prerequisite wizard? - Advanced Installer Community
ewanb
Posts: 28
Joined: Mon Jun 05, 2006 1:53 pm
Location: Glasgow

Is System64Folder available in Prerequisite wizard?

Hi,

I'm using AI 6.3.1 on Windows 7 64-bit and I'm trying to add a prerequisite to a 64-bit project. In the install conditions for the prerequisite I add a file search for any version of a required DLL:

Code: Select all

[System64Folder]required.dll
However when I run the installer it always says:

Code: Select all

Required any | Found none
If I change the prerequisite to manually point at C:\Windows\System32\required.dll then it is found without problem. I modified one of my installer dialogs to show the path for the [System64Folder] and it is being correctly resolved inside the MSI. Am I doing something wrong or is this property not available to prerequisites? What should I use as my search in this case to keep things generic?

Thanks,
Ewan
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Is System64Folder available in Prerequisite wizard?

Hi Ewan,

Advanced Installer is 32 bit application so the tests for 64 bit locations will fail. You can try to mark the prerequisite
as a 64 bit one, this is done in the "Properties" tab, "64-bit" checkbox.

Please let me know if the problem persists.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
ewanb
Posts: 28
Joined: Mon Jun 05, 2006 1:53 pm
Location: Glasgow

Re: Is System64Folder available in Prerequisite wizard?

That didn't make any difference. I also need to correct my initial post. I said:
If I change the prerequisite to manually point at C:\Windows\System32\required.dll then it is found without problem.
However I was mistaken as this was actually resolving to SysWOW64 and finding the 32-bit version of the prerequisite. Is there any way to look for a prerequisite in the System32 folder on a 64-bit Windows install?
ewanb
Posts: 28
Joined: Mon Jun 05, 2006 1:53 pm
Location: Glasgow

Re: Is System64Folder available in Prerequisite wizard?

ok, since I only care about the existence of the DLL and not the version I changed the search type to custom executable and wrote my own 64-bit application that can correctly search 64-bit system folders. For your reference the code is simply:

Code: Select all

int _tmain(int argc, _TCHAR* argv[])
{
	int nRetCode = 1;
	if (argc == 2)
	{
		_stat fileStatus;
		if (_wstat(argv[1], &fileStatus) == 0)
			nRetCode = 0;
	}
	return nRetCode;
} 
Then I just pass the name of the required DLL as the only parameter from the edit install condition dialog. Obviously it would be nicer not to have to do this so if you have a way to do it from within AI please let me know.

Thanks,
Ewan

Return to “Common Problems”