Archive: NSIS - Cookie - inetc ?!


NSIS - Cookie - inetc ?!
Hello

I would like to set a cookie with NSIS to confirm the installation with a php script.

I read the wiki, i found a little thread but it's not verry usefull...
http://nsis.sourceforge.net/Show_ins...ss_on_web_page

I try to access to the confirmation page with inetc::get (to be silent)

My php don't see any cookie...
I also track-it with Wireshark and no cookie in the header...


System::Call "wininet::InternetSetCookie("http://app.domain.com/download.php", "title", "aaa=ddd; expires = Wed, 30-May-2012 09:21:15")

inetc::get /SILENT "http://app.domain.com/download.php" "$PLUGINSDIR\CORE.exe" /end


Thanks everyone !

Sincerly,
Dave

Without looking at the code, inetc probably doesn't read the IE cookies (I doubt people would want that by default). I wouldn't be surprised if it doesn't save cookies from requests either. Why do you need to use a cookie? Can't you just use POST?

Stu


I need to use a Cookie for validate. It's built-in.

So i'll need to use another way? Build my own installer with VS ?

Thanks


If you do not have control over the php script, you could build your own plugin to handle the cookiejar, I'm sure. Or you let the user download the file to $EXEDIR manually, or something...


Or you could modify inetc to suite. It uses WinInet.

Stu


Try version from 13 July 2010 - JohnTHaller modified Inetc (Disabled cookies and cache for cleanliness). I partly rolled this back for situations with Resume option enabled (because it just not work with flags added by JohnTHaller, but it looks like would be better just to rollback to this version. Afrow, can you remove last 2 versions? http://nsis.sourceforge.net/File:Inetc.zip


Done.

Stu


Good version from 13 July 2010 was removed :(. NP, I added /NOCOOKIES option (disabled by default) and only this option does what JohnTHaller wanted to have ;). New version uploaded. By default (no this option defined) our old good inetc will have reget feature and will send cookies as earlier. Again - please note that /NOCOOKIES conflicts with reget!. Wiki page updated.