This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Re: How to delete file from 64 bits platform?
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Oct 02, 2008
04:03 AM
How to delete file from 64 bits platform?
I want to delete file in Windows\system32\drivers\*.sys in Vista 64-bits.
I used below functions to delete file, but failed.
What's wrong with my code(InstallScript Project)?
Thanks for your help.
//------------------------------------------------------//
GetWinSystemPath()
{
if (m_bWin64) then
GetSystemWow64DirectoryA(m_szWinSysDir, 1024);
else
m_szWinSysDir=WINSYSDIR;
endif;
}
DeleteSysFile()
{
if(m_bVista) then
if(m_bWin64) then
szDriverPath = m_szWinSysDir + "\\drivers\\" + DRV_NAME_VISTA_64;
else
szDriverPath = m_szWinSysDir + "\\drivers\\" + DRV_NAME_VISTA_32;
endif;
elseif(SYSINFO.WINNT.bWin2000 | SYSINFO.WINNT.bWinXP) then
szDriverPath = m_szWinSysDir + "\\drivers\\" + DRV_NAME_XP2K;
endif;
if(Is(FILE_EXISTS, szDriverPath)) then
DeleteFile(szDriverPath);
endif;
}
I used below functions to delete file, but failed.
What's wrong with my code(InstallScript Project)?
Thanks for your help.
//------------------------------------------------------//
GetWinSystemPath()
{
if (m_bWin64) then
GetSystemWow64DirectoryA(m_szWinSysDir, 1024);
else
m_szWinSysDir=WINSYSDIR;
endif;
}
DeleteSysFile()
{
if(m_bVista) then
if(m_bWin64) then
szDriverPath = m_szWinSysDir + "\\drivers\\" + DRV_NAME_VISTA_64;
else
szDriverPath = m_szWinSysDir + "\\drivers\\" + DRV_NAME_VISTA_32;
endif;
elseif(SYSINFO.WINNT.bWin2000 | SYSINFO.WINNT.bWinXP) then
szDriverPath = m_szWinSysDir + "\\drivers\\" + DRV_NAME_XP2K;
endif;
if(Is(FILE_EXISTS, szDriverPath)) then
DeleteFile(szDriverPath);
endif;
}
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Oct 02, 2008
11:11 AM
Perhaps look into disabling WOW64FSREDIRECTION? (Don't forget to re-enable it.)