Champak Posted February 8, 2016 Share Posted February 8, 2016 I did a system restore and all of a sudden FileInstall stopped working into my System32 folder. I didn't make any changes to my script and it was working for years...even through other restore events. And I verified my UAC is off. Any ideas? Link to comment Share on other sites More sharing options...
spudw2k Posted February 8, 2016 Share Posted February 8, 2016 AniiVir? EventLog? ProcMon Spoiler Things I've Made: Always On Top Tool ◊ AU History ◊ Deck of Cards ◊ HideIt ◊ ICU ◊ Icon Freezer ◊ Ipod Ejector ◊ Junos Configuration Explorer ◊ Link Downloader ◊ MD5 Folder Enumerator ◊ PassGen ◊ Ping Tool ◊ Quick NIC ◊ Read OCR ◊ RemoteIT ◊ SchTasksGui ◊ SpyCam ◊ System Scan Report Tool ◊ System UpTime ◊ Transparency Machine ◊ VMWare ESX BuilderMisc Code Snippets: ADODB Example ◊ CheckHover ◊ Detect SafeMode ◊ DynEnumArray ◊ GetNetStatData ◊ HashArray ◊ IsBetweenDates ◊ Local Admins ◊ Make Choice ◊ Recursive File List ◊ Remove Sizebox Style ◊ Retrieve PNPDeviceID ◊ Retreive SysListView32 Contents ◊ Set IE Homepage ◊ Tickle Expired Password ◊ Transpose ArrayProjects: Drive Space Usage GUI ◊ LEDkIT ◊ Plasma_kIt ◊ Scan Engine Builder ◊ SpeeDBurner ◊ SubnetCalcCool Stuff: AutoItObject UDF ◊ Extract Icon From Proc ◊ GuiCtrlFontRotate ◊ Hex Edit Funcs ◊ Run binary ◊ Service_UDF Link to comment Share on other sites More sharing options...
Champak Posted February 8, 2016 Author Share Posted February 8, 2016 If AniiVir actually meant Antivirus, no I don't have any of those on this computer. What about the EventLog...where is it and what should I be looking for? And what about the Process Monitor? Link to comment Share on other sites More sharing options...
Danyfirex Posted February 8, 2016 Share Posted February 8, 2016 did you check architecture? Saludos Danysys.com AutoIt... UDFs: VirusTotal API 2.0 UDF - libZPlay UDF - Apps: Guitar Tab Tester - VirusTotal Hash Checker Examples: Text-to-Speech ISpVoice Interface - Get installed applications - Enable/Disable Network connection PrintHookProc - WINTRUST - Mute Microphone Level - Get Connected NetWorks - Create NetWork Connection ShortCut Link to comment Share on other sites More sharing options...
spudw2k Posted February 8, 2016 Share Posted February 8, 2016 Event Log (eventvwr.msc) Look for any failure events any of the "Windows Logs" (Application, Security, System). Process Monitor (from Sysinternals) can be used to identify file system errors for a given process or set of processes. These are just "tools" to try and find more information on what failure(s) is(are) occurring and hopefully lead to a source cause. Spoiler Things I've Made: Always On Top Tool ◊ AU History ◊ Deck of Cards ◊ HideIt ◊ ICU ◊ Icon Freezer ◊ Ipod Ejector ◊ Junos Configuration Explorer ◊ Link Downloader ◊ MD5 Folder Enumerator ◊ PassGen ◊ Ping Tool ◊ Quick NIC ◊ Read OCR ◊ RemoteIT ◊ SchTasksGui ◊ SpyCam ◊ System Scan Report Tool ◊ System UpTime ◊ Transparency Machine ◊ VMWare ESX BuilderMisc Code Snippets: ADODB Example ◊ CheckHover ◊ Detect SafeMode ◊ DynEnumArray ◊ GetNetStatData ◊ HashArray ◊ IsBetweenDates ◊ Local Admins ◊ Make Choice ◊ Recursive File List ◊ Remove Sizebox Style ◊ Retrieve PNPDeviceID ◊ Retreive SysListView32 Contents ◊ Set IE Homepage ◊ Tickle Expired Password ◊ Transpose ArrayProjects: Drive Space Usage GUI ◊ LEDkIT ◊ Plasma_kIt ◊ Scan Engine Builder ◊ SpeeDBurner ◊ SubnetCalcCool Stuff: AutoItObject UDF ◊ Extract Icon From Proc ◊ GuiCtrlFontRotate ◊ Hex Edit Funcs ◊ Run binary ◊ Service_UDF Link to comment Share on other sites More sharing options...
Developers Jos Posted February 8, 2016 Developers Share Posted February 8, 2016 (edited) Maybe it would be useful to define "not working", and tell us what the returncode and @error values are for FileInstall() ? Also show some code and tell us whether you are running autoit3 or compiled x86 or x64. Jos Edited February 8, 2016 by Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Champak Posted February 8, 2016 Author Share Posted February 8, 2016 @ Danyfirex I don't know what you mean by check architecture. @ spudw2k Nothing in the logs as far as errors...or within the time range of when I activate the function. @ Jos FileInstall not working when trying to install a file into System32 folder (no changes have been made to the script). Return value is 0, it happens compiled x86 and script form. What do you mean error values? Nothing is set if error from what I read in the helpfile, but I put an If condition for @errors and didn't get anything. $DCDC_dll = "C:\WINDOWS\system32\DCDCUsbLib.dll" If Not (FileExists($DCDC_dll)) Then $check = FileInstall("C:\Users\Lab1\Desktop\INavMedia Development\Install\Install Dlls\DCDCUsbLib.dll", $DCDC_dll, 1) If @error Then MsgBox(0,0,@error) ConsoleWrite($check & @CRLF) EndIf Link to comment Share on other sites More sharing options...
Bowmore Posted February 8, 2016 Share Posted February 8, 2016 If you are not running the script as ADMIN then C:\WINDOWS\system32\ is normally read only. Have you tried temporarily changing the install path to somewhere else just to check that FileInstall() is working on a none protected directory? "Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the universe trying to build bigger and better idiots. So far, the universe is winning."- Rick Cook Link to comment Share on other sites More sharing options...
Developers Jos Posted February 9, 2016 Developers Share Posted February 9, 2016 (edited) You didn't answer all my questions. IF the returncode is zero I would guess it is failing, so are you sure you have admin rights and are running in Admin mode? Another thing to check is directory: C:\Windows\SysWOW64 for the file depending which mode (x86/x64) you run in. Jos Edited February 9, 2016 by Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Champak Posted February 12, 2016 Author Share Posted February 12, 2016 @Bowmore I can install in all other directories I've tried. @jos I do have admin rights, logged in to windows as an administrator. I dont have those folders. I'll go ahead and check the admin rights of the script when I get home, but I didn't have it before, and I have another computer where everything is installing in the system32 folder with no issue. Do I have to have dlls registered in the system32 folder to work? If I dont, then I can just put them somewhere else and not worry about this. These dlls I'm working with are com objects. Link to comment Share on other sites More sharing options...
spudw2k Posted February 15, 2016 Share Posted February 15, 2016 Well, you can register dlls in any directory AFAIK, so I don't see what it would "have" to reside in sys32/syswow64 (if you are planning on using objget/create funcs). I could see the simplicity in maintaining the dlls in sys32 dirs, but it's I don't think it's a dependency. Just don't forget about cleanup later (regsvr32 /u). Spoiler Things I've Made: Always On Top Tool ◊ AU History ◊ Deck of Cards ◊ HideIt ◊ ICU ◊ Icon Freezer ◊ Ipod Ejector ◊ Junos Configuration Explorer ◊ Link Downloader ◊ MD5 Folder Enumerator ◊ PassGen ◊ Ping Tool ◊ Quick NIC ◊ Read OCR ◊ RemoteIT ◊ SchTasksGui ◊ SpyCam ◊ System Scan Report Tool ◊ System UpTime ◊ Transparency Machine ◊ VMWare ESX BuilderMisc Code Snippets: ADODB Example ◊ CheckHover ◊ Detect SafeMode ◊ DynEnumArray ◊ GetNetStatData ◊ HashArray ◊ IsBetweenDates ◊ Local Admins ◊ Make Choice ◊ Recursive File List ◊ Remove Sizebox Style ◊ Retrieve PNPDeviceID ◊ Retreive SysListView32 Contents ◊ Set IE Homepage ◊ Tickle Expired Password ◊ Transpose ArrayProjects: Drive Space Usage GUI ◊ LEDkIT ◊ Plasma_kIt ◊ Scan Engine Builder ◊ SpeeDBurner ◊ SubnetCalcCool Stuff: AutoItObject UDF ◊ Extract Icon From Proc ◊ GuiCtrlFontRotate ◊ Hex Edit Funcs ◊ Run binary ◊ Service_UDF Link to comment Share on other sites More sharing options...
rudi Posted February 23, 2016 Share Posted February 23, 2016 Hello, 1.) As Jos already pointed out: c:\windows\system32 c:\windows\sysWOW64 do not permit to write files to, *EVEN* if you are logged on as "the Administrator", that's *NOT* sufficient. The script needs to be run "UAC elevated". 1.) does your script have a line telling .... #RequireAdmin ?? 2.) download process monitor, run it, add a filter to display only... category = write result "is not" success see, what's going on. Regards, Rudi. Earth is flat, pigs can fly, and Nuclear Power is SAFE! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now